designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

Divide button into 2 components in Figma (Button and IconButton)

Open mrosvik opened this issue 2 years ago • 3 comments

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.

mrosvik avatar Dec 19 '23 10:12 mrosvik

This issue is no longer relevant because of #1305 and #1333

Barsnes avatar Jan 16 '24 13:01 Barsnes

@Barsnes I guess its still relevant for Figma?

mrosvik avatar Feb 12 '24 11:02 mrosvik

@Barsnes I guess its still relevant for Figma?

I belive so. In code we solve this with a boolean that changes the styling of the button

Barsnes avatar Feb 12 '24 13:02 Barsnes