Can we pair help text with a button? #2202
-
I don't think we have any paste pattern that attaches something like help text to a button, right? Example in the quick deploy sections on CodeExchange https://www.twilio.com/code-exchange/basic-ivr Looking for a way to attach information like help text to a button/action rather than rely on text on the page to provide it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @rosemaryluo! That's correct, this isn't something we have a pattern for since it's not as common a use case. We'd recommend putting the text above the button, so the information is read in order to a screen reader, for example. It'd be especially significant if the info is important to know before the user clicks on the button. You'd also want to use I also wanted to ask, what's the downside you're considering for not using default-style text in paragraphs above the button? |
Beta Was this translation helpful? Give feedback.
Hi @rosemaryluo! That's correct, this isn't something we have a pattern for since it's not as common a use case. We'd recommend putting the text above the button, so the information is read in order to a screen reader, for example. It'd be especially significant if the info is important to know before the user clicks on the button. You'd also want to use
aria-describedby
on the button, pointing it to the HelpText.I also wanted to ask, what's the downside you're considering for not using default-style text in paragraphs above the button?