Fix button styles

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-02-27 16:58:15 +05:30
parent 784deaa6ea
commit 7db674b65d

View file

@ -1,5 +1,6 @@
@use 'state'; @use 'state';
@use '../../partials/dir'; @use '../../partials/dir';
@use '../../partials/text';
.btn-surface, .btn-surface,
.btn-primary, .btn-primary,
@ -18,11 +19,16 @@
cursor: pointer; cursor: pointer;
@include state.disabled; @include state.disabled;
& .text {
@extend .cp-txt__ellipsis;
}
&--icon { &--icon {
@include dir.side(padding, var(--sp-tight), var(--sp-loose)); @include dir.side(padding, var(--sp-tight), var(--sp-loose));
.ic-raw { .ic-raw {
@include dir.side(margin, 0, var(--sp-extra-tight)); @include dir.side(margin, 0, var(--sp-extra-tight));
flex-shrink: 0;
} }
} }
} }