mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
12aa200ad0
* 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
44 lines
937 B
SCSS
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);
|
|
}
|
|
}
|
|
}
|