Skip to content

Commit bfdf1ab

Browse files
committed
fix(Item): fix item-native style to ionic theme
1 parent d19f061 commit bfdf1ab

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

core/src/components/item/item.ionic.scss

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
:host {
88
--background: #{globals.$ion-bg-surface-default};
99
--background-activated: #{globals.$ion-bg-select-default};
10+
--background-focused: #{globals.$ion-primitives-neutral-200};
11+
--background-focused-opacity: 1;
1012
--border-color: #{globals.$ion-primitives-neutral-300};
1113
--border-style: #{globals.$ion-border-style-solid};
1214
--border-width: #{0 0 globals.$ion-border-size-025 0};
@@ -72,17 +74,21 @@ slot[name="end"]::slotted(*) {
7274
// Item: Focused
7375
// --------------------------------------------------
7476

75-
:host(.ion-focused) .item-native::after {
76-
@include globals.border-radius(inherit);
77-
@include globals.position(0, 0, 0, 0);
77+
:host(.ion-focused) .item-native{
78+
--border-radius: #{globals.$ion-border-radius-400};
79+
80+
&::after {
81+
@include globals.border-radius(inherit);
82+
@include globals.position(0, 0, 0, 0);
7883

79-
position: absolute;
84+
position: absolute;
8085

81-
border-width: globals.$ion-border-size-050;
82-
border-style: globals.$ion-border-style-solid;
83-
border-color: globals.$ion-border-focus-default;
86+
border-width: globals.$ion-border-size-050;
87+
border-style: globals.$ion-border-style-solid;
88+
border-color: globals.$ion-border-focus-default;
8489

85-
content: "";
90+
content: "";
91+
}
8692
}
8793

8894
// Ionic Item Lines

0 commit comments

Comments
 (0)