File tree 9 files changed +113
-95
lines changed
9 files changed +113
-95
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @justeattakeaway/pie-button " : minor
3
+ " @justeattakeaway/pie-divider " : minor
4
+ " @justeattakeaway/pie-icon-button " : minor
5
+ " @justeattakeaway/pie-modal " : minor
6
+ " @justeattakeaway/pie-switch " : minor
7
+ " @justeattakeaway/pie-tag " : minor
8
+ ---
9
+
10
+ [ Changed] - Update styling for dark mode
Original file line number Diff line number Diff line change 24
24
// The following values set to default background and color
25
25
// currently this sets the primary button styles
26
26
--btn-bg-color : var (--dt-color-interactive-brand );
27
- --btn-text-color : var (--dt-color-content-interactive-primary );
27
+ --btn-text-color : var (--dt-color-content-interactive-light );
28
28
--icon-display-override : block ;
29
29
30
30
// Vertical and horizontal padding values for the button
131
131
* update the button backgrounds so that the text is accessible
132
132
**/
133
133
--btn-bg-color : var (--dt-color-interactive-primary );
134
+ --btn-text-color : var (--dt-color-content-interactive-primary );
134
135
135
136
@include p .button-interactive-states (' --dt-color-interactive-primary' , ' inverse' );
136
137
}
Original file line number Diff line number Diff line change 28
28
text-align : center ;
29
29
gap : var (--dt-spacing-b );
30
30
background-color : transparent ;
31
+ color : var (--dt-color-content-subdued );
31
32
32
33
.c-divider-label {
33
34
font-size : var (--divider-font-size );
Original file line number Diff line number Diff line change 13
13
.o-iconBtn {
14
14
--btn-border-radius : var (--dt-radius-rounded-e );
15
15
--btn-bg-color : var (--dt-color-interactive-brand );
16
- --btn-icon-fill : var (--dt-color-content-interactive-primary );
16
+ --btn-icon-fill : var (--dt-color-content-interactive-light );
17
17
--icon-display-override : block ;
18
18
19
19
block-size : var (--btn-dimension , var (--btn-dimension-default ));
125
125
--icon-size-override : 28px ;
126
126
}
127
127
}
128
-
Original file line number Diff line number Diff line change 42
42
border : none ;
43
43
box-shadow : var (--modal-elevation );
44
44
font-family : var (--modal-font );
45
+ color : var (--dt-color-content-default );
45
46
background-color : var (--modal-bg-color );
46
47
47
48
padding : 0 ;
Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export class PieSwitch extends FormControlMixin(RtlMixin(LitElement)) implements
160
160
}
161
161
162
162
return html `
163
- < span data-test-id ="switch-label- ${ labelPlacement } ">
163
+ < span
164
+ data-test-id ="switch-label- ${ labelPlacement } "
165
+ class ="c-switch-label ">
164
166
${ label }
165
167
</ span > ` ;
166
168
}
Original file line number Diff line number Diff line change 137
137
}
138
138
}
139
139
140
+ .c-switch-label {
141
+ color : var (--dt-color-content-default );
142
+ }
143
+
140
144
// The description is only required for screen readers so we need to visually hide the description
141
145
.c-switch-description {
142
146
@include p .visually-hidden ;
Original file line number Diff line number Diff line change 157
157
158
158
& .c-tag--brand-03 {
159
159
--tag-bg-color : var (--dt-color-support-brand-03 );
160
- --tag-color : var (--dt-color-content-default );
160
+ --tag-color : var (--dt-color-content-dark );
161
161
@include tag-interactive-states (' --dt-color-support-brand-03' );
162
162
}
163
163
164
164
& .c-tag--brand-04 {
165
165
--tag-bg-color : var (--dt-color-support-brand-04 );
166
- --tag-color : var (--dt-color-content-default );
166
+ --tag-color : var (--dt-color-content-dark );
167
167
@include tag-interactive-states (' --dt-color-support-brand-04' );
168
168
}
169
169
You can’t perform that action at this time.
0 commit comments