Skip to content

Commit 9cbb18a

Browse files
authored
feat(notifications): Updated styling of the reminder notification (#2776)
1 parent 485941c commit 9cbb18a

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

design-tokens/force-base-skin/background-color.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ props:
117117
COLOR_BACKGROUND_NOTIFICATION_NEW:
118118
value: '{!PALETTE_GRAY_2}'
119119
comment: Background color for a new notification list item.
120+
COLOR_BACKGROUND_REMINDER:
121+
value: '{!LINK_WATER}'
122+
comment: Background color for reminder notification
123+
COLOR_BACKGROUND_REMINDER_HOVER:
124+
value: '{!WHITE}'
125+
comment: Background color for reminder notification on hover
120126
COLOR_BACKGROUND_ORG_SWITCHER_ARROW:
121127
value: '{!DEEP_COVE}'
122128
comment: Stage left org switcher dropdown arrow background color.

design-tokens/force-base-skin/border-color.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ props:
164164
value: '{!WHITE}'
165165
comment: These borders create the faux checkmark when the checkbox toggle is in the checked state.
166166
COLOR_BORDER_REMINDER:
167-
value: '{!CADET_BLUE}'
167+
value: '{!PALETTE_GRAY_4}'
168168
comment: Border color on notification reminders.
169169
COLOR_STROKE_BRAND:
170170
value: '{!SCIENCE_BLUE}'

design-tokens/force-base-skin/box-shadow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ props:
3838
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_SMALL}px {!OFFSET_NONE} {!BLACK_TRANSPARENT_16}'
3939
comment: Shadow for drop down.
4040
SHADOW_REMINDER:
41-
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_NONE} {!OFFSET_NONE} {!BLACK_TRANSPARENT_10}'
41+
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_SMALL}px {!OFFSET_NONE} {!BLACK_TRANSPARENT_20}'
4242
comment: Shadow for notifications that should be elevated above other components but under modals.
4343
SHADOW_HEADER:
4444
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_MEDIUM}px {!BLACK_TRANSPARENT_07}'

design-tokens/force-base/background-color.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ props:
117117
COLOR_BACKGROUND_NOTIFICATION_NEW:
118118
value: '{!PALETTE_COOL_GRAY_2}'
119119
comment: Background color for a new notification list item.
120+
COLOR_BACKGROUND_REMINDER:
121+
value: '{!LINK_WATER}'
122+
comment: Background color for reminder notification
123+
COLOR_BACKGROUND_REMINDER_HOVER:
124+
value: '{!WHITE}'
125+
comment: Background color for reminder notification on hover
120126
COLOR_BACKGROUND_ORG_SWITCHER_ARROW:
121127
value: '{!DEEP_COVE}'
122128
comment: Stage left org switcher dropdown arrow background color.

design-tokens/force-base/border-color.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ props:
164164
value: '{!WHITE}'
165165
comment: These borders create the faux checkmark when the checkbox toggle is in the checked state.
166166
COLOR_BORDER_REMINDER:
167-
value: '{!CADET_BLUE}'
167+
value: '{!PALETTE_GRAY_4}'
168168
comment: Border color on notification reminders.
169169
COLOR_STROKE_BRAND:
170170
value: '{!SCIENCE_BLUE}'

design-tokens/force-base/box-shadow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ props:
3838
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_SMALL}px {!OFFSET_NONE} {!BLACK_TRANSPARENT_16}'
3939
comment: Shadow for drop down.
4040
SHADOW_REMINDER:
41-
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_NONE} {!OFFSET_NONE} {!BLACK_TRANSPARENT_10}'
41+
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_SMALL}px {!OFFSET_NONE} {!BLACK_TRANSPARENT_20}'
4242
comment: Shadow for notifications that should be elevated above other components but under modals.
4343
SHADOW_HEADER:
4444
value: '{!OFFSET_NONE} {!OFFSET_X_SMALL}px {!OFFSET_MEDIUM}px {!BLACK_TRANSPARENT_07}'

ui/components/notifications/base/_index.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
box-shadow: $shadow-reminder;
3232

3333
+ .slds-notification {
34-
margin-top: $spacing-small;
34+
margin-top: $spacing-x-small;
3535
}
3636

3737
&:nth-of-type(4) {
@@ -60,14 +60,14 @@
6060
* @restrict .slds-notification__body a
6161
*/
6262
.slds-notification__target {
63-
padding: $spacing-small $spacing-large $spacing-medium $spacing-small;
63+
padding: $spacing-small;
6464
border-radius: $border-radius-medium;
65-
background-color: $color-background-alt;
65+
background-color: $color-background-reminder;
6666
color: $color-text-default;
6767

6868
&:hover,
6969
&:focus {
70-
background-color: $color-background;
70+
background-color: $color-background-reminder-hover;
7171
text-decoration: none;
7272
}
7373
}

0 commit comments

Comments
 (0)