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

Allow title to be provided to Select.Option #1757

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Oct 29, 2024

Allow to pass a title to the Select.Option, so that consumers can set a title that's displayed when hovering over any part of the option.

If the title is set to the first option's child element instead, then it won't be displayed when hovering over the option's padding, which is unintuitive.

@acelaya acelaya requested a review from robertknight October 29, 2024 09:11
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7fc3e67) to head (b48339a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1757   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           67        67           
  Lines         1205      1205           
  Branches       454       454           
=========================================
  Hits          1205      1205           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acelaya acelaya force-pushed the select-option-title branch from e44a32f to b48339a Compare October 29, 2024 09:49
Copy link
Member

@robertknight robertknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have slight reservations about this as tooltips triggered by title are not available on mobile, but it seems like a useful affordance to provide on desktop.

I noted in Slack that Safari automatically shows the full text of an elided element in a tooltip, but Firefox and Chrome do not.

@acelaya acelaya merged commit e20b4ce into main Oct 29, 2024
4 checks passed
@acelaya acelaya deleted the select-option-title branch October 29, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants