Input Fields - Label prop for A11y #70
Unanswered
megaroeny
asked this question in
Figma UI Kit
Replies: 2 comments 1 reply
-
I've pinged the design team to join for assistance. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We're currently working on the tokens update for the UI Kit but noted for the next releases. Thank you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the Figma kit, you can only show a label during
focus
with aFloating label
. Can you provide a boolean prop always to have a label visible? This is also a requirement for AA accessibility criteria. It would also provide more flexibility with the input field props overall (in Figma).Something helpful you can do is to create a "label" atomic-level component (hidden in the library with an _), so that you can insert that in every variant. Makes it easier to maintain and also expose as a prop.
I also noticed in the code components you have an example for "Help Text" that shows a persistent label being displayed, same as my request above. This is basically what I am requesting:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions