(react) add button with icon only

Previously using Button with only an icon made it render with an
internal offset, that wasn't really nice-looking. Now we force the
button to be squared.
This commit is contained in:
Nathan Vasse
2023-02-13 12:07:38 +01:00
committed by NathanVss
parent 89138e0a5a
commit 722b66b3ae
6 changed files with 59 additions and 6 deletions

View File

@@ -12,6 +12,12 @@
font-size: var(--c--components--button--font-size);
font-weight: var(--c--components--button--font-weight);
&--icon-only {
padding: 0;
width: var(--c--components--button--height);
justify-content: center;
}
&--with-icon--left, &--with-icon--right {
gap: var(--c--theme--spacings--t);
}