Skip to content

Commit 32e9822

Browse files
committed
fix backdrop tokens & architecture
1 parent e16104a commit 32e9822

File tree

8 files changed

+17
-10
lines changed

8 files changed

+17
-10
lines changed

core/src/components/backdrop/backdrop.scss renamed to core/src/components/backdrop/backdrop.common.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./backdrop.vars";
1+
@import "../../themes/mixins.scss";
22

33
// Backdrop
44
// --------------------------------------------------
@@ -15,7 +15,6 @@
1515
cursor: pointer;
1616
opacity: 0.01;
1717
touch-action: none;
18-
z-index: $z-index-backdrop;
1918
}
2019

2120
:host(.backdrop-hide) {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@use "../../themes/ionic/ionic.globals.scss" as globals;
2-
@import "./backdrop";
2+
@use "./backdrop.common";
33

44
:host {
55
background-color: rgba(globals.$ion-primitives-base-black-rgb, 0.7);
6+
7+
z-index: 2;
68
}

core/src/components/backdrop/backdrop.ios.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import "./backdrop";
2-
@import "./backdrop.ios.vars";
1+
@import "./backdrop.native";
2+
@import "../../themes/native/native.globals.ios";
33

44
:host {
55
background-color: $backdrop-ios-color;

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

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/components/backdrop/backdrop.md.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import "./backdrop";
2-
@import "./backdrop.md.vars";
1+
@import "./backdrop.native";
2+
@import "../../themes/native/native.globals.md.scss";
33

44
:host {
55
background-color: $backdrop-md-color;

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@import "./backdrop.common";
2+
@import "../../themes/native/native.globals";
3+
4+
// Backdrop
5+
// --------------------------------------------------
6+
7+
:host {
8+
z-index: $z-index-backdrop;
9+
}

core/src/components/backdrop/backdrop.vars.scss

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)