Skip to content

Commit 6c31996

Browse files
committed
feat(alert): use gray tokens
1 parent 0b4b461 commit 6c31996

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

core/src/components/alert/alert.ios.vars.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $alert-ios-title-font-weight: 600;
5757
$alert-ios-sub-title-font-size: dynamic-font-min(1, 14px);
5858

5959
/// @prop - Text color of the alert sub title
60-
$alert-ios-sub-title-text-color: $text-color-step-400;
60+
$alert-ios-sub-title-text-color: var(--ion-color-gray-600);
6161

6262
/// @prop - Padding top of the alert message
6363
$alert-ios-message-padding-top: 0;
@@ -114,7 +114,7 @@ $alert-ios-input-padding-start: $alert-ios-input-padding-end;
114114
$alert-ios-input-placeholder-color: $placeholder-text-color;
115115

116116
/// @prop - Border color of the alert input
117-
$alert-ios-input-border-color: $background-color-step-250;
117+
$alert-ios-input-border-color: var(--ion-color-gray-250);
118118

119119
/// @prop - Border of the alert input
120120
$alert-ios-input-border: $hairlines-width solid $alert-ios-input-border-color;

core/src/components/alert/alert.md.vars.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $alert-md-message-padding-start: $alert-md-message-padding-end;
8080
$alert-md-message-font-size: dynamic-font(16px);
8181

8282
/// @prop - Text color of the alert message
83-
$alert-md-message-text-color: $text-color-step-450;
83+
$alert-md-message-text-color: var(--ion-color-gray-550);
8484

8585
/// @prop - Padding top of the alert empty message
8686
$alert-md-message-empty-padding-top: 0;
@@ -104,7 +104,7 @@ $alert-md-input-border-width: 1px;
104104
$alert-md-input-border-style: solid;
105105

106106
/// @prop - Border color of the alert input
107-
$alert-md-input-border-color: $background-color-step-150;
107+
$alert-md-input-border-color: var(--ion-color-gray-150);
108108

109109
/// @prop - Text color of the alert input
110110
$alert-md-input-text-color: $text-color;
@@ -209,7 +209,7 @@ $alert-md-radio-border-style: solid;
209209
$alert-md-radio-border-radius: 50%;
210210

211211
/// @prop - Border color of the alert radio when off
212-
$alert-md-radio-border-color-off: $background-color-step-550;
212+
$alert-md-radio-border-color-off: var(--ion-color-gray-550);
213213

214214
/// @prop - Border color of the alert radio when on
215215
$alert-md-radio-border-color-on: $alert-md-button-text-color;
@@ -254,7 +254,7 @@ $alert-md-radio-label-padding-start: $alert-md-radio-label-padding-end + 26px;
254254
$alert-md-radio-label-font-size: dynamic-font(16px);
255255

256256
/// @prop - Text color of the label for the radio alert
257-
$alert-md-radio-label-text-color: $text-color-step-150;
257+
$alert-md-radio-label-text-color: var(--ion-color-gray-850);
258258

259259
/// @prop - Text color of the label for the checked radio alert
260260
$alert-md-radio-label-text-color-checked: $alert-md-radio-label-text-color;
@@ -281,7 +281,7 @@ $alert-md-checkbox-border-style: solid;
281281
$alert-md-checkbox-border-radius: 2px;
282282

283283
/// @prop - Border color of the checkbox in the alert when off
284-
$alert-md-checkbox-border-color-off: $background-color-step-550;
284+
$alert-md-checkbox-border-color-off: var(--ion-color-gray-550);
285285

286286
/// @prop - Border color of the checkbox in the alert when on
287287
$alert-md-checkbox-border-color-on: $alert-md-button-text-color;
@@ -323,7 +323,7 @@ $alert-md-checkbox-label-padding-bottom: $alert-md-checkbox-label-padding-top;
323323
$alert-md-checkbox-label-padding-start: $alert-md-checkbox-label-padding-end + 27px;
324324

325325
/// @prop - Text color of the label for the checkbox in the alert
326-
$alert-md-checkbox-label-text-color: $text-color-step-150;
326+
$alert-md-checkbox-label-text-color: var(--ion-color-gray-850);
327327

328328
/// @prop - Font size of the label for the checkbox in the alert
329329
$alert-md-checkbox-label-font-size: dynamic-font(16px);

core/src/components/alert/alert.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181

182182
.alert-button.ion-focused,
183183
.alert-tappable.ion-focused {
184-
background: $background-color-step-100;
184+
background: var(--ion-color-gray-100);
185185
}
186186

187187
.alert-button-inner {

0 commit comments

Comments
 (0)