Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltips (hover text clarifying the purpose) to inputs #170

Closed
FitzFrobozz opened this issue Dec 30, 2023 · 2 comments
Closed

Add tooltips (hover text clarifying the purpose) to inputs #170

FitzFrobozz opened this issue Dec 30, 2023 · 2 comments
Labels
feature request New feature or request

Comments

@FitzFrobozz
Copy link

FitzFrobozz commented Dec 30, 2023

Is your Feature Request Related to a Problem?

Currently it doesn't look like there is a way to enable tooltips (information that clarifies the purpose of the input when the cursor is over the input), even though the aria-label attribute is present in the rendered html.

Describe the Feature you'd Like

The biggest benefit of having tooltips would be better general accessibility, but it would also be helpful in cases where, e.g., an inline button is styled to be made smaller (e.g. a small button at the end of a heading).

I would propose either: (a) pull text from the input label and display that as a tooltip or (b) add a new title argument and display that text as a tooltip.

(If falling back and using a title attribute instead would be easier, that would make me almost as happy, although it would be less accessible.)

Additional Context

No response

@FitzFrobozz FitzFrobozz added the feature request New feature or request label Dec 30, 2023
@mProjectsCode
Copy link
Owner

I just pushed a commit that adds an optional tooltip to buttons. If no tooltip is set, the button label will be shown as the tooltip on hover.
I hope this solves this FR.

@FitzFrobozz
Copy link
Author

I'm sure it does, regardless of how you implemented it. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants