-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(elements): fix prefixed props passing & logic in Button & IconButton
- Loading branch information
1 parent
6575ba0
commit 708db85
Showing
3 changed files
with
110 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { css } from 'styled-components' | ||
|
||
export function interpolatePrimaryButtonThemedCss() { | ||
return css` | ||
background-color: ${p => p.theme.color.charcoal}; | ||
border: 1px solid ${p => p.theme.color.charcoal}; | ||
color: ${p => p.theme.color.gainsboro}; | ||
&:hover, | ||
&._hover { | ||
background-color: ${p => p.theme.color.blueYonder}; | ||
border: 1px solid ${p => p.theme.color.blueYonder}; | ||
color: ${p => p.theme.color.white}; | ||
} | ||
&:active, | ||
&._active { | ||
background-color: ${p => p.theme.color.blueGray}; | ||
border: 1px solid ${p => p.theme.color.blueGray}; | ||
color: ${p => p.theme.color.white}; | ||
} | ||
&:disabled, | ||
&._disabled { | ||
background-color: ${p => p.theme.color.lightGray}; | ||
border: 1px solid ${p => p.theme.color.lightGray}; | ||
color: ${p => p.theme.color.cultured}; | ||
} | ||
` | ||
} | ||
|
||
export function interpolateSecondaryButtonThemedCss() { | ||
return css` | ||
background-color: transparent; | ||
border: 1px solid ${p => p.theme.color.charcoal}; | ||
color: ${p => p.theme.color.charcoal}; | ||
&:hover, | ||
&._hover { | ||
background-color: ${p => p.theme.color.blueYonder25}; | ||
border: 1px solid ${p => p.theme.color.blueYonder}; | ||
color: ${p => p.theme.color.blueYonder}; | ||
} | ||
&:active, | ||
&._active { | ||
background-color: ${p => p.theme.color.blueGray25}; | ||
border: 1px solid ${p => p.theme.color.blueGray}; | ||
color: ${p => p.theme.color.blueGray}; | ||
} | ||
&:disabled, | ||
&._disabled { | ||
background-color: transparent; | ||
border: 1px solid ${p => p.theme.color.lightGray}; | ||
color: ${p => p.theme.color.lightGray}; | ||
} | ||
` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters