Skip to content

Commit fe9e2c9

Browse files
authored
chore: update dependencies and other tokens (#5091)
* chore: update dependencies and other tokens * chore: update hardcoded values * chore: update red-50 to red-40 for error tokens * chore: update palette tokens with styling hooks * chore: update neu-50 to 10 for const color * doc: updated release notes
1 parent 9ac33f9 commit fe9e2c9

File tree

12 files changed

+37
-36
lines changed

12 files changed

+37
-36
lines changed

RELEASENOTES.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
## Release 2.20.0 - Upcoming
55

6+
- Updated constanst colors codes with global slds hooks
67
- Updated background colors for Standard and Actions icons
78
- Added two new dependencies for SLDS global styling hooks generation,
8-
- `@salesforce-ux/sds-styling-aliases`
9-
- `@salesforce-ux/sds-styling-hooks`
9+
- `@salesforce-ux/sds-styling-aliases` with version `0.2.4`
10+
- `@salesforce-ux/sds-styling-hooks` with version `1.1.0-alpha.2`
1011
- Updated `gulpfile` to include SLDS global hooks generation as part of build and dist jobs
1112
- Updated design tokens in every component and utility with SLDS global styling hooks (except Brand related tokens)
1213

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"@salesforce-ux/postcss-annotations-parser": "0.1.1",
5555
"@salesforce-ux/postcss-css-variable-value": "0.2.0",
5656
"@salesforce-ux/scss-parser-aura": "^3.1.1",
57-
"@salesforce-ux/sds-styling-aliases": "0.2.3",
58-
"@salesforce-ux/sds-styling-hooks": "1.0.0-alpha.1",
57+
"@salesforce-ux/sds-styling-aliases": "0.2.4",
58+
"@salesforce-ux/sds-styling-hooks": "1.1.0-alpha.2",
5959
"@storybook/addon-a11y": "^5.3.21",
6060
"@storybook/addon-backgrounds": "^5.3.21",
6161
"@storybook/addon-docs": "^5.3.21",

ui/components/alert/base/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $alert-gradient-size-background: 64px 64px;
9696
*/
9797
.slds-alert_error {
9898
/*! @css-var-fallback background-color */
99-
--slds-c-alert-color-background: var(--slds-g-color-error-base-50, #{$color-background-toast-error});
99+
--slds-c-alert-color-background: var(--slds-g-color-error-base-40, #{$color-background-toast-error});
100100
}
101101

102102
/**
@@ -106,7 +106,7 @@ $alert-gradient-size-background: 64px 64px;
106106
*/
107107
.slds-alert_offline {
108108
/*! @css-var-fallback background-color */
109-
--slds-c-alert-color-background: #{$palette-neutral-30};
109+
--slds-c-alert-color-background: var(--slds-g-color-neutral-base-30, #{$palette-neutral-30});
110110
}
111111

112112
/**

ui/components/chat/base/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
*/
347347
.slds-chat-message__text_delivery-failure {
348348
background-color: var(--slds-g-color-neutral-base-100, #{$chat-message-color-background-status});
349-
border: var(--slds-g-color-error-base-50, #{$color-border-destructive}) $border-width-thin solid;
349+
border: var(--slds-g-color-error-base-40, #{$color-border-destructive}) $border-width-thin solid;
350350
color: var(--slds-g-color-neutral-base-10, #{$color-text-default});
351351
margin-left: auto;
352352

@@ -360,7 +360,7 @@
360360
padding: $spacing-x-small $spacing-x-small 0;
361361
margin: $spacing-x-small #{-$spacing-x-small} 0;
362362
color: var(--slds-g-color-error-base-40, #{$color-text-error});
363-
border-top: var(--slds-g-color-error-base-50, #{$color-border-destructive}) $border-width-thin solid;
363+
border-top: var(--slds-g-color-error-base-40, #{$color-border-destructive}) $border-width-thin solid;
364364
}
365365

366366
@include deprecate('4.0', 'Please use slds-icon-text-error modifier for slds-icon') {

ui/components/dynamic-icons/ellie/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $_ellie-frameset: (
7171
svg {
7272
width: $_ellie-sprite-width;
7373
vertical-align: top;
74-
color: $palette-cloud-blue-60;
74+
color: var(--slds-g-color-palette-cloud-blue-60, #{$palette-cloud-blue-60});
7575
}
7676

7777
circle:nth-child(2n + 1) {
@@ -81,8 +81,8 @@ $_ellie-frameset: (
8181
}
8282

8383
circle:nth-child(2n) {
84-
fill: $palette-neutral-100;
85-
stroke: $palette-neutral-100;
84+
fill: var(--slds-g-color-neutral-base-100, #{$palette-neutral-100});
85+
stroke: var(--slds-g-color-neutral-base-100, #{$palette-neutral-100});
8686
stroke-width: 1px;
8787
}
8888
}

ui/components/dynamic-icons/strength/_index.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
circle { // 1
2828
stroke-width: 0.95px;
2929
fill: transparent;
30-
stroke: $palette-neutral-60;
30+
stroke: var(--slds-g-color-neutral-base-60, #{$palette-neutral-60});
3131
transition: // 2
3232
fill 0.4s ease-in-out,
3333
stroke 0.4s ease-in-out;
@@ -61,7 +61,7 @@
6161
&[data-slds-strength="-3"] circle:nth-child(1),
6262
&[data-slds-strength="-3"] circle:nth-child(2),
6363
&[data-slds-strength="-3"] circle:nth-child(3) {
64-
fill: $palette-pink-90;
64+
fill: var(--slds-g-color-palette-pink-90, #{$palette-pink-90});
6565
stroke: var(--slds-g-color-error-base-30, #{$color-background-error-dark});
6666
}
6767

@@ -126,12 +126,12 @@
126126
// Improve readability of animations
127127
// stylelint-disable
128128
@keyframes slds-icon-strength-positive-load {
129-
0% { fill: transparent; stroke: $palette-neutral-60; }
129+
0% { fill: transparent; stroke: var(--slds-g-color-neutral-base-60, #{$palette-neutral-60}); }
130130
100% { fill: var(--slds-g-color-success-base-50, #{$color-text-success});
131131
stroke: var(--slds-g-color-success-base-50, #{$color-text-success}); }
132132
}
133133

134134
@keyframes slds-icon-strength-negative-load {
135-
0% { fill: transparent; stroke: $palette-neutral-60; }
136-
100% { fill: $palette-pink-90; stroke: var(--slds-g-color-error-base-40, #{$color-background-destructive}); }
135+
0% { fill: transparent; stroke: var(--slds-g-color-neutral-base-60, #{$palette-neutral-60}); }
136+
100% { fill: var(--slds-g-color-palette-pink-90, #{$palette-pink-90}); stroke: var(--slds-g-color-error-base-40, #{$color-background-destructive}); }
137137
}

ui/components/dynamic-icons/trend/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ $_icon-trend-one: 1.125px;
6969
}
7070

7171
.slds-icon-trend[data-slds-trend="neutral"] {
72-
color: $palette-neutral-60;
72+
color: var(--slds-g-color-neutral-base-60, #{$palette-neutral-60});
7373
}
7474

7575
.slds-icon-trend[data-slds-trend="up"] {

ui/components/lookups-mobile/listbox/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
padding: $spacing-x-small $spacing-large $spacing-x-small 0;
1515
min-height: $height-tappable;
1616
line-height: 1.375;
17-
border-bottom: $border-width-thin solid #f1f2f3;
17+
border-bottom: $border-width-thin solid var(--slds-g-color-neutral-base-95, #f1f2f3);
1818

1919
mark {
2020
font-weight: $font-weight-bold;

ui/components/rich-text-editor/base/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
user-select: text;
229229

230230
&.ql-blank:before {
231-
color: #54698d;
231+
color: var(--slds-g-color-neutral-base-10, #54698d);
232232
content: attr(data-placeholder);
233233
pointer-events: none;
234234
position: absolute;

0 commit comments

Comments
 (0)