Skip to content

Dark mode: disabled input contrast #2547

Answered by shleewhite
andoyle asked this question in General
Discussion options

You must be logged in to vote

Hi @andoyle,

If users are meant to read but not interact with an input, we generally advise not using the disabled prop because disabled inputs are meant to be low contrast. If they are higher contrast, people believe they can interact with them or that they are submitted with the form.

Instead, you could use the readOnly prop which maintains high contrast but prevents users from typing or using Text or Paragraph component to just display the field label and content as normal text. We have a note about this on the Input docs: https://paste.twilio.design/components/input/#disabled-input.

Please let us know if you have more questions!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kate-porter
Comment options

You must be logged in to vote
1 reply
@shleewhite
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants