diff options
author | crupest <crupest@outlook.com> | 2023-07-19 18:26:00 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-19 18:26:00 +0800 |
commit | adc91a81fe53fdbc3d63065baa0b56862c104824 (patch) | |
tree | 6dc610d24c231186b81eb01f3b56f24e6660a1c3 /FrontEnd/src/views/common/button/IconButton.tsx | |
parent | d712d3847506c5c2df62f741d9d2cb91e34f6bfd (diff) | |
download | timeline-adc91a81fe53fdbc3d63065baa0b56862c104824.tar.gz timeline-adc91a81fe53fdbc3d63065baa0b56862c104824.tar.bz2 timeline-adc91a81fe53fdbc3d63065baa0b56862c104824.zip |
AppBar done!
Diffstat (limited to 'FrontEnd/src/views/common/button/IconButton.tsx')
-rw-r--r-- | FrontEnd/src/views/common/button/IconButton.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/FrontEnd/src/views/common/button/IconButton.tsx b/FrontEnd/src/views/common/button/IconButton.tsx index e5454574..ac746a7b 100644 --- a/FrontEnd/src/views/common/button/IconButton.tsx +++ b/FrontEnd/src/views/common/button/IconButton.tsx @@ -7,7 +7,7 @@ import "./IconButton.css"; interface IconButtonProps extends ComponentPropsWithoutRef<"i"> { icon: string; - color?: ThemeColor; + color?: ThemeColor | "on-surface"; large?: boolean; } @@ -20,7 +20,11 @@ export default function IconButton(props: IconButtonProps) { "cru-icon-button", large && "large", "bi-" + icon, - color ? "cru-" + color : "cru-primary", + color === "on-surface" + ? "on-surface" + : color != null + ? "cru-" + color + : "cru-primary", className, )} {...otherProps} |