Skip to content

Commit

Permalink
fix(ui): use CSS variable instead of hardcoded values
Browse files Browse the repository at this point in the history
(cherry picked from commit 70d6ade)
  • Loading branch information
Pavel910 committed Jan 15, 2025
1 parent 4bdee89 commit daa4faa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/ui/src/AutoComplete/MultiAutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const style = {
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "2px solid #fa5723",
borderBottom: "2px solid var(--mdc-theme-primary, #fa5723)",
padding: "6px 0"
}),
pages: css({
Expand Down Expand Up @@ -128,7 +128,14 @@ interface MultiAutoCompleteState {
}

const Spinner = () => {
return <MaterialSpinner size={24} spinnerColor={"#fa5723"} spinnerWidth={2} visible />;
return (
<MaterialSpinner
size={24}
spinnerColor={"var(--mdc-theme-primary, #fa5723)"}
spinnerWidth={2}
visible
/>
);
};

interface RenderOptionsParams
Expand Down

0 comments on commit daa4faa

Please sign in to comment.