designsystemet
designsystemet copied to clipboard
Divide button into 2 components in Figma (Button and IconButton)
We need a larger icon inside the buttons that only has icon and no text. We should separate the button
-component with a separate component for IconButton
(buttons with only icon). This will also make the button component simpler to maintain in Figma.
Edit: I kode kan det fortsatt være Button. Vi har enkelt måte å detektere når ikonet er satt og om det kun er et ikon. Vi kan skille dem som to komponenter under Button-siden i Figma.