digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
81 stars 37 forks source link

Improve the tab design #2367

Open TomasEng opened 2 months ago

TomasEng commented 2 months ago

Description

I would like to suggest a way to improve the tab design to make it more clear and intuitive for the users.

This is the current design: image

There are some details that I find problematic with this:

Here is a draft I made to illustrate how I think we could address all of these issues:

image

Such a design more closely resembles real-life tabs, making it easier to understand, particularly for users that don't have much experience with digital tools.

Alternatively we could gather inspiration from other tools that solve this nicely, like Chrome or Github: image image

Additional Information

No response

Febakke commented 2 months ago

Thanks @TomasEng 👏

We agree that in some cases our tabs might not be the best design. I would think that also would be true for a more "tablike" design. We wont prioritize this now, but will look into if we can support more variants or do some design changes to make our tabs better for all cases after version 1 is released 😊

mrosvik commented 1 month ago

Autorisasjon also need to show the tab with a border instead of line. We should consider both designs.

Example: Github also has to variants of tab, one with line, one with border:

image

Closing #2032 as it is a duplicate of this one.