Skip to content

Commit

Permalink
button style: add second class
Browse files Browse the repository at this point in the history
  • Loading branch information
yeguangsuixing committed Jun 17, 2023
1 parent 5e8083f commit 5c7b114
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/components/button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
fill: white !important;
}
}

&.second {
background-color: var(--second);
//color: white;

// path {
// fill: white !important;
// }
}
}

.shadow {
Expand Down
2 changes: 1 addition & 1 deletion app/components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styles from "./button.module.scss";
export function IconButton(props: {
onClick?: () => void;
icon?: JSX.Element;
type?: "primary" | "danger";
type?: "primary" | "second" | "danger";
text?: string;
block?: boolean;
bordered?: boolean;
Expand Down

0 comments on commit 5c7b114

Please sign in to comment.