Skip to content

Commit d299976

Browse files
committed
refactor(many): add back Sass variables
1 parent 6fe4734 commit d299976

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

core/src/components/action-sheet/action-sheet.ios.vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $action-sheet-ios-group-margin-top: 10px;
2525
$action-sheet-ios-group-margin-bottom: 10px;
2626

2727
/// @prop - Background color of the action sheet
28-
$action-sheet-ios-background-color: var(--ion-color-overlay-bg);
28+
$action-sheet-ios-background-color: $overlay-ios-background-color;
2929

3030
/// @prop - Border radius of the action sheet
3131
$action-sheet-ios-border-radius: 13px;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $alert-ios-max-width: dynamic-font-clamp(1, 270px, 1.2);
1515
$alert-ios-border-radius: 13px;
1616

1717
/// @prop - Background color of the alert
18-
$alert-ios-background-color: var(--ion-color-overlay-bg);
18+
$alert-ios-background-color: $overlay-ios-background-color;
1919

2020
/// @prop - Background color alpha of the alert when translucent
2121
$alert-ios-translucent-background-color-alpha: 0.9;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $loading-ios-border-radius: 8px;
3131
$loading-ios-text-color: $text-color;
3232

3333
/// @prop - Background of the loading wrapper
34-
$loading-ios-background-color: var(--ion-color-overlay-bg);
34+
$loading-ios-background-color: $overlay-ios-background-color;
3535

3636
/// @prop - Background color alpha of the translucent loading wrapper
3737
$loading-ios-translucent-background-color-alpha: 0.8;

core/src/components/tab-bar/tab-bar.ios.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
:host {
88
// default color / background
9-
--background: var(--ion-components-ion-tab-bar-bg);
9+
--background: #{$tabbar-ios-background};
1010
--background-focused: #{$tabbar-ios-background-focused};
11-
--border: #{$hairlines-width solid var(--ion-tab-bar-border-color, var(--ion-components-ion-tab-bar-border-color))};
11+
--border: #{$hairlines-width solid $tabbar-ios-border-color};
1212
--color: #{$tab-button-ios-text-color};
1313
--color-selected: #{$tabbar-ios-color-selected};
1414

core/src/components/tab-bar/tab-bar.md.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// default color / background
77
--background: #{$tabbar-md-background};
88
--background-focused: #{$tabbar-md-background-focused};
9-
--border: #{1px solid (var(--ion-tab-bar-border-color, var(--ion-components-ion-tab-bar-border-color)))};
9+
--border: #{1px solid $tabbar-md-border-color};
1010
--color: #{$tab-button-md-text-color};
1111
--color-selected: #{$tabbar-md-color-selected};
1212

core/src/themes/native/native.theme.default.ios.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
// iOS General Colors
88
// --------------------------------------------------
99
$backdrop-ios-color: var(--ion-backdrop-color, #000);
10+
$overlay-ios-background-color: var(--ion-overlay-background-color, var(--ion-color-overlay-bg));
1011

1112
// iOS Tabs & Tab bar
1213
// --------------------------------------------------
14+
$tabbar-ios-background: var(--ion-tab-bar-background, var(--ion-components-ion-tab-bar-bg));
1315
$tabbar-ios-background-focused: var(--ion-tab-bar-background-focused, get-color-shade(#fff));
16+
$tabbar-ios-border-color: var(--ion-tab-bar-border-color, var(--ion-components-ion-tab-bar-border-color));
1417
$tabbar-ios-color: var(--ion-tab-bar-color, var(--ion-color-text-600));
1518
$tabbar-ios-color-selected: var(--ion-tab-bar-color-selected, ion-color(primary, base));
1619

core/src/themes/native/native.theme.default.md.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ $overlay-md-background-color: var(--ion-overlay-background-color, var(--ion-back
1313
// --------------------------------------------------
1414
$tabbar-md-background: var(--ion-tab-bar-background, $background-color);
1515
$tabbar-md-background-focused: var(--ion-tab-bar-background-focused, get-color-shade(#fff));
16+
$tabbar-md-border-color: var(--ion-tab-bar-border-color, var(--ion-components-ion-tab-bar-border-color));
1617
$tabbar-md-color: var(--ion-tab-bar-color, var(--ion-color-text-650));
1718
$tabbar-md-color-selected: var(--ion-tab-bar-color-selected, ion-color(primary, base));
1819

1920
// Material Design Toolbar
2021
// --------------------------------------------------
2122
$toolbar-md-background: var(--ion-toolbar-background, var(--ion-components-ion-toolbar-bg));
22-
$toolbar-md-border-color: var(--ion-tab-bar-border-color, var(--ion-components-ion-toolbar-border-color));
23+
$toolbar-md-border-color: var(--ion-toolbar-border-color, var(--ion-components-ion-toolbar-border-color));
2324
$toolbar-md-color: var(--ion-toolbar-color, var(--ion-text-color, #424242));
2425

2526
// Material Design List & List Items

0 commit comments

Comments
 (0)