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 12aa200ad0
15090: add primary button (#16079)
* 15090: add primary button

* updates

* add button base props

* add button base props to primary

* remove button base props and improve classname test

* update box shadow animation

* fix anchor test and update documentation

* fix button base iconProps proptype
2022-10-05 21:51:02 -07:00

44 lines
937 B
SCSS

.mm-button-primary {
color: var(--color-primary-inverse);
background-color: var(--color-primary-default);
&: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);
}
&.mm-button--disabled {
&:hover {
box-shadow: none;
}
&:active {
background-color: var(--color-primary-default);
}
}
&--type-danger {
color: var(--color-error-inverse);
background-color: var(--color-error-default);
&: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);
}
&.mm-button--disabled:active {
background-color: var(--color-error-default);
}
}
}