digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
77 stars 36 forks source link

Simplify our form input designs #2561

Open Febakke opened 1 week ago

Febakke commented 1 week ago

All inputs will soon be one component with different types in code. For exampple input type=text. This means they will all use the same component tokens in code. To day we are handling states different on different components. Can we make them simpler and more alike?

mrosvik commented 5 days ago

Investigate: Should we have hover state on input components?

eirikbacker commented 3 days ago

Simplifications for our input components:

Skip using hover:

Skip changing border-width on invalid:

Switch colors?

Switch height?

Size today: Using same scaling as checkbox/radio:
image image

Switch readonly:

image