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-secondary/button-secondary.scss
Garrett Bear 958cfe65a0
Feat/15951/add button secondary (#16097)
* 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>
2022-10-07 08:50:28 -07:00

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);
}
}
}