Skip to content

Commit

Permalink
feat(alert): add sass variables for checkbox and radio button text co…
Browse files Browse the repository at this point in the history
…lor (#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
  • Loading branch information
alan-agius4 authored and jgw96 committed Feb 10, 2017
1 parent 87e4fc6 commit 9cd42dd
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/components/alert/alert.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ $alert-ios-list-border-top: $alert-ios-button-border-width $
/// @prop - Padding on the label for the radio alert
$alert-ios-radio-label-padding: 13px !default;

/// @prop - Text color of the label for the radio alert
$alert-ios-radio-label-text-color: initial !default;

/// @prop - Text color of the label for the checked radio alert
$alert-ios-radio-label-text-color-checked: $alert-ios-button-text-color !default;

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

/// @prop - Text color of the label for the checkbox in the alert
$alert-ios-checkbox-label-text-color: initial !default;

/// @prop - Text color of the label for the checked checkbox in the alert
$alert-ios-checkbox-label-text-color-checked: initial !default;

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

text-overflow: ellipsis;
white-space: nowrap;

color: $alert-ios-radio-label-text-color;
}


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

text-overflow: ellipsis;
white-space: nowrap;

color: $alert-ios-checkbox-label-text-color;
}

.alert-ios [aria-checked=true] .alert-checkbox-label {
Expand Down
12 changes: 11 additions & 1 deletion src/components/alert/alert.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ $alert-md-list-border-bottom: $alert-md-list-border-top !default
/// @prop - Padding on the label for the radio alert
$alert-md-radio-label-padding: 13px 26px !default;

/// @prop - Text color of the label for the radio alert
$alert-md-radio-label-text-color: initial !default;

/// @prop - Text color of the label for the checked radio alert
$alert-md-radio-label-text-color-checked: $alert-md-button-text-color !default;

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

/// @prop - Text color of the label for the checked checkbox in the alert
/// @prop - Text color of the label for the checkbox in the alert
$alert-md-checkbox-label-text-color: initial !default;

/// @prop - Text color of the label for the checked checkbox in the alert
$alert-md-checkbox-label-text-color-checked: initial !default;


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

text-overflow: ellipsis;
white-space: nowrap;

color: $alert-md-radio-label-text-color;
}

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

text-overflow: ellipsis;
white-space: nowrap;

color: $alert-md-checkbox-label-text-color;
}

.alert-md [aria-checked=true] .alert-checkbox-label {
Expand Down
10 changes: 10 additions & 0 deletions src/components/alert/alert.wp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ $alert-wp-radio-border-color: $input-wp-border-color !default;
/// @prop - Padding of the label for the radio alert
$alert-wp-radio-label-padding: 13px 26px !default;

/// @prop - Text color of the label for the radio alert
$alert-wp-radio-label-text-color: initial !default;

/// @prop - Text color of the label for the checked radio alert
$alert-wp-radio-label-text-color-checked: $alert-wp-button-text-color !default;

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

/// @prop - Text color of the label for the checkbox in the alert
$alert-wp-checkbox-label-text-color: initial !default;

/// @prop - Text color of the label for the checked checkbox in the alert
$alert-wp-checkbox-label-text-color-checked: initial !default;

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

text-overflow: ellipsis;
white-space: nowrap;

color: $alert-wp-radio-label-text-color;
}

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

text-overflow: ellipsis;
white-space: nowrap;

color: $alert-wp-checkbox-label-text-color;
}

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

0 comments on commit 9cd42dd

Please sign in to comment.