1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/components/component-library/button-icon/button-icon.scss
Garrett Bear 090476d9a2
ButtonIcon background & ButtonBase disabled update (#19976)
* button background hover updates

* add buttonlink underline

* update button base disabled

* fix size auto

* Update ui/components/component-library/button-link/button-link.stories.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* remove underline

---------

Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-07-13 13:22:40 -07:00

44 lines
682 B
SCSS

.mm-button-icon {
--button-icon-size: var(--size, 24px);
height: var(--button-icon-size);
width: var(--button-icon-size);
padding: 0;
cursor: pointer;
// ButtonIcon default states
&:hover {
background-color: var(--color-background-hover);
}
&:active {
background-color: var(--color-background-pressed);
}
&--disabled,
&:disabled {
opacity: var(--opacity-disabled);
cursor: not-allowed;
&:hover,
&:active {
background-color: transparent;
}
}
// ButtonIcon Sizes
&--size-sm {
--button-icon-size: 24px;
}
&--size-md {
--button-icon-size: 28px;
}
&--size-lg {
--button-icon-size: 32px;
}
}