Skip to content

Commit afbce6c

Browse files
committed
added correct tokens for highlight variable on ionic theme
1 parent c7fc655 commit afbce6c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--background: #{globals.$ion-primitives-base-white};
1010
// TODO(ROU-10778, ROU-10875): Sync the color names to the design system of
1111
// ios and md. This will allow us to have a single color map.
12-
--border-color: #{globals.current-color(neutral)};
12+
--border-color: #{globals.$ion-primitives-neutral-500};
1313
--border-width: #{globals.$ion-border-size-025};
1414
--focus-ring-color: #{globals.$ion-border-focus-default};
1515
--padding-start: #{globals.$ion-space-400};
@@ -18,6 +18,9 @@
1818
--padding-bottom: #{globals.$ion-space-300};
1919
--placeholder-color: #{globals.$ion-primitives-neutral-800};
2020
--placeholder-opacity: 1;
21+
--highlight-color-focused: #{globals.$ion-border-focus-default};
22+
--highlight-color-valid: #{globals.$ion-semantics-success-900};
23+
--highlight-color-invalid: #{globals.$ion-semantics-danger-800};
2124
}
2225

2326
// Select Label
@@ -182,18 +185,6 @@
182185
color: globals.$ion-primitives-neutral-500;
183186
}
184187

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-
197188
// Shapes
198189
// ----------------------------------------------------------------
199190

0 commit comments

Comments
 (0)