1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/component-library/button-primary/button-primary.scss
Garrett Bear 1265731344
Feat/16637/button housekeeping (#16872)
* button housekeeping

* add iconsearch

* fix description

* readme update

* update disabled classnames

* buttonlink disabled class

* add disabled proptypes

* add constant exports

* update disabled style classes

* update snapshot for box pill classname

* add buttonTextProps

* update primarybutton background color to use box props

* update button secondary and link to use box props

* update tests
2023-01-13 13:58:09 -08:00

40 lines
799 B
SCSS

.mm-button-primary {
&:hover {
color: var(--color-primary-inverse);
box-shadow: var(--component-button-primary-shadow);
}
&:active {
color: var(--color-primary-inverse);
background-color: var(--color-primary-alternative);
}
// Danger type
&--type-danger {
&:hover {
color: var(--color-error-inverse);
box-shadow: var(--component-button-danger-shadow);
}
&:active {
color: var(--color-error-inverse);
background-color: var(--color-error-alternative);
}
}
// Disabled
&--disabled {
&:hover {
box-shadow: none;
}
&:active {
background-color: var(--color-primary-default);
}
}
// Disabled danger
&--type-danger#{&}--disabled:active {
background-color: var(--color-error-default);
}
}