Skip to content

Commit 25a467e

Browse files
authored
chore: wcag 2.1 updates (#5086)
* chore: wcag 2.1 updates * fix: fix popover issue * fix: revert linear gradient slds hooks as they are not been converted on core
1 parent 71500d2 commit 25a467e

File tree

8 files changed

+15
-19
lines changed

8 files changed

+15
-19
lines changed

ui/components/brand-band/base/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
bottom: 0;
2929
left: 0;
3030
background-image:
31-
url($brand-band-default-image),
31+
url($static-image-path + $brand-band-default-image),
3232
linear-gradient(to top, $brand-background-dark-transparent 0, $brand-background-dark);
3333
background-repeat: repeat-x;
3434
background-position: top left;

ui/components/menus/dropdown/_deprecate.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
.slds-dropdown_nubbin-top,
3030
.slds-dropdown--nubbin-top {
31-
@include nubbin(top, 'before');
32-
@include nubbin(top);
31+
@include nubbin(top, 'before', $color: var(--slds-g-color-neutral-base-100, #{$color-background-alt}));
32+
@include nubbin(top, $color: var(--slds-g-color-neutral-base-100, #{$color-background-alt}));
3333
margin-top: ($nubbin-size-default * 0.5);
3434

3535
&:before {

ui/components/popovers/base/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @variant
1515
*/
1616
.slds-popover {
17-
@include popover($shadow: $shadow-drop-down);
17+
@include popover($color: var(--slds-g-color-neutral-base-100, #{$color-background-alt}), $shadow: $shadow-drop-down);
1818
border: $border-width-thin solid var(--slds-g-color-border-base-1, #{$color-border});
1919
}
2020

ui/components/popovers/brand/_index.scss

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@
9191
&.slds-nubbin_top-left-corner:before,
9292
&.slds-nubbin_top-right:before,
9393
&.slds-nubbin_top-right-corner:before {
94-
@include brand-nubbin($position: "top", $location: "before",
95-
$color: var(--slds-g-color-brand-base-10, #{$color-border-inverse}));
94+
@include brand-nubbin($position: "top", $location: "before", $color: $color-border-inverse);
9695
}
9796
}
9897
}
@@ -130,8 +129,7 @@
130129
&.slds-nubbin_left-top-corner:before,
131130
&.slds-nubbin_left-bottom:before,
132131
&.slds-nubbin_left-bottom-corner:before {
133-
@include brand-nubbin($position: "left", $location: "before",
134-
$color: var(--slds-g-color-brand-base-10, #{$color-border-inverse}));
132+
@include brand-nubbin($position: "left", $location: "before", $color: $color-border-inverse);
135133
}
136134
}
137135
}
@@ -169,8 +167,7 @@
169167
&.slds-nubbin_bottom-left-corner:before,
170168
&.slds-nubbin_bottom-right:before,
171169
&.slds-nubbin_bottom-right-corner:before {
172-
@include brand-nubbin($position: "bottom", $location: "before",
173-
$color: var(--slds-g-color-brand-base-10, #{$color-border-inverse}));
170+
@include brand-nubbin($position: "bottom", $location: "before", $color: $color-border-inverse);
174171
}
175172
}
176173
}
@@ -208,8 +205,7 @@
208205
&.slds-nubbin_right-top-corner:before,
209206
&.slds-nubbin_right-bottom:before,
210207
&.slds-nubbin_right-bottom-corner:before {
211-
@include brand-nubbin($position: "right", $location: "before",
212-
$color: var(--slds-g-color-brand-base-10, #{$color-border-inverse}));
208+
@include brand-nubbin($position: "right", $location: "before", $color: $color-border-inverse);
213209
}
214210
}
215211
}

ui/dependencies/_lists.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// @param $color {String} Defines the color of the dot
4949
// @param $mq {Boolean} If you want a dots on touch device or not
5050

51-
@mixin dot-separator($direction: right, $size: 2px, $color: var(--slds-g-color-brand-base-20, #{$color-background-indicator-dot}), $mq: null) {
51+
@mixin dot-separator($direction: right, $size: 2px, $color: $color-background-indicator-dot, $mq: null) {
5252
position: relative;
5353
display: flex;
5454
align-items: center;

ui/dependencies/_popover.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
22
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license
33

4-
@mixin nubbin($position: bottom, $location: "after", $color: var(--slds-g-color-neutral-base-100, #{$color-background-alt}), $size: $nubbin-size-default) {
4+
@mixin nubbin($position: bottom, $location: "after", $color: $color-background-alt, $size: $nubbin-size-default) {
55

66
&:#{$location} {
77
@include square($size);
@@ -36,7 +36,7 @@
3636
}
3737
}
3838

39-
@mixin popover($color: var(--slds-g-color-neutral-base-100, #{$color-background-alt}), $shadow: null) {
39+
@mixin popover($color: $color-background-alt, $shadow: null) {
4040
position: relative;
4141
border-radius: $border-radius-medium;
4242
width: $size-medium;

ui/utilities/horizontal-list/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
.slds-has-dividers--left > .slds-list__item,
3434
.slds-has-dividers_left > .slds-item,
3535
.slds-has-dividers--left > .slds-item {
36-
@include dot-separator(left);
36+
@include dot-separator($direction: left, $color: var(--slds-g-color-brand-base-20, #{$color-background-indicator-dot}));
3737
}
3838

3939
/**
@@ -46,5 +46,5 @@
4646
.slds-has-dividers--right > .slds-list__item,
4747
.slds-has-dividers_right > .slds-item,
4848
.slds-has-dividers--right > .slds-item {
49-
@include dot-separator(right);
49+
@include dot-separator($direction: right, $color: var(--slds-g-color-brand-base-20, #{$color-background-indicator-dot}));
5050
}

ui/utilities/vertical-list/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
*/
256256
.slds-has-divider_right,
257257
.slds-has-divider--right {
258-
@include dot-separator(right);
258+
@include dot-separator($direction: right, $color: var(--slds-g-color-brand-base-20, #{$color-background-indicator-dot}));
259259
}
260260

261261
/**
@@ -285,5 +285,5 @@
285285
*/
286286
.slds-has-divider_left,
287287
.slds-has-divider--left {
288-
@include dot-separator(left);
288+
@include dot-separator($direction: left, $color: var(--slds-g-color-brand-base-20, #{$color-background-indicator-dot}));
289289
}

0 commit comments

Comments
 (0)