Skip to content

Commit 105f3d8

Browse files
committed
fix(ui): use CSS variable instead of hardcoded values
1 parent 62f1952 commit 105f3d8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/ui/src/AutoComplete/MultiAutoComplete.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const style = {
3737
display: "flex",
3838
justifyContent: "space-between",
3939
alignItems: "center",
40-
borderBottom: "2px solid #fa5723",
40+
borderBottom: "2px solid var(--mdc-theme-primary, #fa5723)",
4141
padding: "6px 0"
4242
}),
4343
pages: css({
@@ -128,7 +128,14 @@ interface MultiAutoCompleteState {
128128
}
129129

130130
const Spinner = () => {
131-
return <MaterialSpinner size={24} spinnerColor={"#fa5723"} spinnerWidth={2} visible />;
131+
return (
132+
<MaterialSpinner
133+
size={24}
134+
spinnerColor={"var(--mdc-theme-primary, #fa5723)"}
135+
spinnerWidth={2}
136+
visible
137+
/>
138+
);
132139
};
133140

134141
interface RenderOptionsParams

0 commit comments

Comments
 (0)