mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
958cfe65a0
* add button secondary * revert change to shadow stories * test and docs update * Update ui/components/component-library/button-secondary/README.mdx Co-authored-by: George Marshall <george.marshall@consensys.net> * remove unused fragment Co-authored-by: George Marshall <george.marshall@consensys.net>
52 lines
1.2 KiB
SCSS
52 lines
1.2 KiB
SCSS
.mm-button-secondary {
|
|
color: var(--color-primary-default);
|
|
border: 1px solid var(--color-primary-default);
|
|
background-color: transparent;
|
|
|
|
&: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);
|
|
}
|
|
|
|
&.mm-button--disabled {
|
|
&:hover {
|
|
color: var(--color-primary-default);
|
|
box-shadow: none;
|
|
background-color: transparent;
|
|
}
|
|
|
|
&:active {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
&--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);
|
|
}
|
|
|
|
&.mm-button--disabled:hover {
|
|
color: var(--color-error-default);
|
|
}
|
|
}
|
|
}
|