-
Notifications
You must be signed in to change notification settings - Fork 3
make primary buttons shadowy, remove edge=none #1213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,7 +77,7 @@ const ButtonStyled = styled.button<ButtonStyleProps>((props) => { | |
| ...props, | ||
| } | ||
| const { colors } = theme.custom | ||
| const hasBorder = variant === "secondary" || variant === "text" | ||
| const hasBorder = variant === "secondary" | ||
|
|
||
| return [ | ||
| { | ||
|
|
@@ -110,17 +110,22 @@ const ButtonStyled = styled.button<ButtonStyleProps>((props) => { | |
| backgroundColor: colors.mitRed, | ||
| color: colors.white, | ||
| border: "none", | ||
| /* Shadow/04dp */ | ||
| boxShadow: | ||
| "0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)", | ||
| ":hover:not(:disabled)": { | ||
| backgroundColor: colors.red, | ||
| boxShadow: "none", | ||
| }, | ||
| ":disabled": { | ||
| backgroundColor: colors.silverGray, | ||
| boxShadow: "none", | ||
| }, | ||
| }, | ||
| hasBorder && { | ||
| backgroundColor: "transparent", | ||
| borderColor: "currentcolor", | ||
| borderStyle: variant === "secondary" ? "solid" : "none", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously, Applying |
||
| borderStyle: "solid", | ||
| }, | ||
| variant === "secondary" && { | ||
| color: colors.red, | ||
|
|
@@ -132,6 +137,8 @@ const ButtonStyled = styled.button<ButtonStyleProps>((props) => { | |
| }, | ||
| }, | ||
| variant === "text" && { | ||
| backgroundColor: "transparent", | ||
| borderStyle: "none", | ||
| color: colors.darkGray2, | ||
| ":hover:not(:disabled)": { | ||
| backgroundColor: tinycolor(colors.darkGray1).setAlpha(0.06).toString(), | ||
|
|
@@ -177,14 +184,6 @@ const ButtonStyled = styled.button<ButtonStyleProps>((props) => { | |
| // Pill-shaped buttons... Overlapping border radius get clipped to pill. | ||
| borderRadius: "100vh", | ||
| }, | ||
| edge === "none" && { | ||
| border: "none", | ||
| ":hover:not(:disabled)": { | ||
| "&&": { | ||
| backgroundColor: "inherit", | ||
| }, | ||
| }, | ||
| }, | ||
| // color | ||
| color === "secondary" && { | ||
| color: theme.custom.colors.silverGray, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edge="none" is not in figma; it was added for resource cards, but that is handled a little differently now (changed in #1180 )