1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/components/component-library/button-secondary/button-secondary.scss
Dhruv 7c2f7671b0
ButtonSecondary to TS (#20411)
* ButtonSecondary to TS

* updating components and addressing errors

* lint and snapshot updates

* using Boolean conversion for className

* removing ValidButtonTag type

* fix text color when link

---------

Co-authored-by: garrettbear <gwhisten@gmail.com>
2023-08-14 15:13:15 -07:00

51 lines
1.2 KiB
SCSS

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