Skip to content

Commit c0c8394

Browse files
committed
add focus to select
1 parent 85e12dd commit c0c8394

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

core/src/components/select/select.ionic.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ios and md. This will allow us to have a single color map.
1212
--border-color: #{globals.current-color(neutral)};
1313
--border-width: #{globals.$ion-border-size-025};
14+
--focus-ring-color: #{globals.$ion-border-focus-default};
1415
--padding-start: #{globals.$ion-space-400};
1516
--padding-end: #{globals.$ion-space-400};
1617
--padding-top: #{globals.$ion-space-300};
@@ -181,6 +182,18 @@
181182
color: globals.$ion-primitives-neutral-500;
182183
}
183184

185+
// Focus
186+
// ---------------------------------------------
187+
:host(.ion-focused) .select-wrapper-inner {
188+
@include globals.focused-state(null, null, var(--focus-ring-color));
189+
}
190+
191+
// Invalid
192+
// ---------------------------------------------
193+
:host(.ion-invalid) {
194+
--focus-ring-color: #{globals.$ion-border-focus-error};
195+
}
196+
184197
// Shapes
185198
// ----------------------------------------------------------------
186199

0 commit comments

Comments
 (0)