Skip to content

Commit 9cd42dd

Browse files
alan-agius4jgw96
authored andcommitted
feat(alert): add sass variables for checkbox and radio button text color (#10331)
* feat(alert): add sass variables for checkbox and radio button text color * style(alert): remove extra spaces * Replace initial value with `initial` instead of `null` * Remove submodule * fix ios variable usage * style(alert wp): remove whitespace
1 parent 87e4fc6 commit 9cd42dd

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

src/components/alert/alert.ios.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ $alert-ios-list-border-top: $alert-ios-button-border-width $
120120
/// @prop - Padding on the label for the radio alert
121121
$alert-ios-radio-label-padding: 13px !default;
122122

123+
/// @prop - Text color of the label for the radio alert
124+
$alert-ios-radio-label-text-color: initial !default;
125+
123126
/// @prop - Text color of the label for the checked radio alert
124127
$alert-ios-radio-label-text-color-checked: $alert-ios-button-text-color !default;
125128

@@ -153,6 +156,9 @@ $alert-ios-radio-icon-transform: rotate(45deg) !default;
153156
/// @prop - Padding of the label for the checkbox in the alert
154157
$alert-ios-checkbox-label-padding: 13px !default;
155158

159+
/// @prop - Text color of the label for the checkbox in the alert
160+
$alert-ios-checkbox-label-text-color: initial !default;
161+
156162
/// @prop - Text color of the label for the checked checkbox in the alert
157163
$alert-ios-checkbox-label-text-color-checked: initial !default;
158164

@@ -314,6 +320,8 @@ $alert-ios-checkbox-icon-transform: rotate(45deg) !default;
314320

315321
text-overflow: ellipsis;
316322
white-space: nowrap;
323+
324+
color: $alert-ios-radio-label-text-color;
317325
}
318326

319327

@@ -369,6 +377,8 @@ $alert-ios-checkbox-icon-transform: rotate(45deg) !default;
369377

370378
text-overflow: ellipsis;
371379
white-space: nowrap;
380+
381+
color: $alert-ios-checkbox-label-text-color;
372382
}
373383

374384
.alert-ios [aria-checked=true] .alert-checkbox-label {

src/components/alert/alert.md.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ $alert-md-list-border-bottom: $alert-md-list-border-top !default
124124
/// @prop - Padding on the label for the radio alert
125125
$alert-md-radio-label-padding: 13px 26px !default;
126126

127+
/// @prop - Text color of the label for the radio alert
128+
$alert-md-radio-label-text-color: initial !default;
129+
127130
/// @prop - Text color of the label for the checked radio alert
128131
$alert-md-radio-label-text-color-checked: $alert-md-button-text-color !default;
129132

@@ -181,7 +184,10 @@ $alert-md-radio-icon-transition: transform 280ms cubic-bezier(.4, 0
181184
/// @prop - Padding of the label for the checkbox in the alert
182185
$alert-md-checkbox-label-padding: 13px 26px !default;
183186

184-
/// @prop - Text color of the label for the checked checkbox in the alert
187+
/// @prop - Text color of the label for the checkbox in the alert
188+
$alert-md-checkbox-label-text-color: initial !default;
189+
190+
/// @prop - Text color of the label for the checked checkbox in the alert
185191
$alert-md-checkbox-label-text-color-checked: initial !default;
186192

187193

@@ -339,6 +345,8 @@ $alert-md-checkbox-icon-transform: rotate(45deg) !default;
339345

340346
text-overflow: ellipsis;
341347
white-space: nowrap;
348+
349+
color: $alert-md-radio-label-text-color;
342350
}
343351

344352
// Material Design Alert Radio Unchecked Circle
@@ -405,6 +413,8 @@ $alert-md-checkbox-icon-transform: rotate(45deg) !default;
405413

406414
text-overflow: ellipsis;
407415
white-space: nowrap;
416+
417+
color: $alert-md-checkbox-label-text-color;
408418
}
409419

410420
.alert-md [aria-checked=true] .alert-checkbox-label {

src/components/alert/alert.wp.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ $alert-wp-radio-border-color: $input-wp-border-color !default;
130130
/// @prop - Padding of the label for the radio alert
131131
$alert-wp-radio-label-padding: 13px 26px !default;
132132

133+
/// @prop - Text color of the label for the radio alert
134+
$alert-wp-radio-label-text-color: initial !default;
135+
133136
/// @prop - Text color of the label for the checked radio alert
134137
$alert-wp-radio-label-text-color-checked: $alert-wp-button-text-color !default;
135138

@@ -175,6 +178,9 @@ $alert-wp-radio-icon-border-radius: $alert-wp-radio-border-radius !de
175178
/// @prop - Padding of the label for the checkbox in the alert
176179
$alert-wp-checkbox-label-padding: 13px 26px !default;
177180

181+
/// @prop - Text color of the label for the checkbox in the alert
182+
$alert-wp-checkbox-label-text-color: initial !default;
183+
178184
/// @prop - Text color of the label for the checked checkbox in the alert
179185
$alert-wp-checkbox-label-text-color-checked: initial !default;
180186

@@ -337,6 +343,8 @@ $alert-wp-checkbox-icon-transform: rotate(45deg) !default;
337343

338344
text-overflow: ellipsis;
339345
white-space: nowrap;
346+
347+
color: $alert-wp-radio-label-text-color;
340348
}
341349

342350
// Windows Alert Radio Unchecked Circle
@@ -403,6 +411,8 @@ $alert-wp-checkbox-icon-transform: rotate(45deg) !default;
403411

404412
text-overflow: ellipsis;
405413
white-space: nowrap;
414+
415+
color: $alert-wp-checkbox-label-text-color;
406416
}
407417

408418
.alert-wp [aria-checked=true] .alert-checkbox-label {

0 commit comments

Comments
 (0)