You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is a layout shift happening when a FormElement switches from no message to any (error, info, normal) message.
There is a discussion ongoing if space for the message should be reserved for displaying a message (in particular an error message) or if additional whitespace should be avoided.
Reserving space:
visual stability
better accessibility
consistent layout
Dynamic height:
cleaner initial layout
uses less space
more UX freedom
As with the label and its hideLabel property, there should be an equivalent hideMessage property. We can consider adding an extra property to toggle a slim/inline/no-label-and-message/only-textbox-mode.
Therefore, we will reserve the space by default. Only when explicitly hidden, the space is removed.
Why?
Currently, there is a layout shift happening when a FormElement switches from no message to any (error, info, normal) message.
There is a discussion ongoing if space for the message should be reserved for displaying a message (in particular an error message) or if additional whitespace should be avoided.
Reserving space:
Dynamic height:
As with the
label
and itshideLabel
property, there should be an equivalenthideMessage
property.We can consider adding an extra property to toggle a slim/inline/no-label-and-message/only-textbox-mode.
Therefore, we will reserve the space by default. Only when explicitly hidden, the space is removed.
Design
Figma
Acceptance criteria
Implementation details
Reference implementations
Applicable ARIA Pattern
Definition of Done
The following component requirements are implemented:
apps/demo-app/src/views/HomeView.vue
Should be covered by tests:
Make sure, that
Approval
Storybook Documentation - [ ] Checked and approved by designer - [ ] Checked and approved by dev
The text was updated successfully, but these errors were encountered: