mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
1265731344
* 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
51 lines
1.2 KiB
SCSS
51 lines
1.2 KiB
SCSS
.mm-button-secondary {
|
|
&:hover {
|
|
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 {
|
|
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);
|
|
}
|
|
}
|