✨(react) add icon to Button
The DS does not offer an icons set yet but it seems important to already provide a support for external icons in Button.
This commit is contained in:
@@ -12,6 +12,18 @@
|
||||
font-size: var(--c--components--button--font-size);
|
||||
font-weight: var(--c--components--button--font-weight);
|
||||
|
||||
&--with-icon--left, &--with-icon--right {
|
||||
gap: var(--c--theme--spacings--t);
|
||||
}
|
||||
|
||||
&--with-icon--left {
|
||||
padding: 0 var(--c--theme--spacings--s) 0 var(--c--theme--spacings--t);
|
||||
}
|
||||
|
||||
&--with-icon--right {
|
||||
padding: 0 var(--c--theme--spacings--t) 0 var(--c--theme--spacings--s);
|
||||
}
|
||||
|
||||
&--primary {
|
||||
background-color: var(--c--theme--colors--primary-500);
|
||||
color: var(--c--theme--colors--primary-text);
|
||||
|
||||
Reference in New Issue
Block a user