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

Support ability to define a CSS class to forcibly display tooltips #4015

Closed
emyarod opened this issue Sep 18, 2019 · 2 comments
Closed

Support ability to define a CSS class to forcibly display tooltips #4015

emyarod opened this issue Sep 18, 2019 · 2 comments
Assignees
Labels
status: inactive Will close if there's no further activity within a given time type: enhancement 💡

Comments

@emyarod
Copy link
Member

emyarod commented Sep 18, 2019

Summary

Our current tooltip implementation assumes that the trigger element can support pseudo-elements. This causes a problem in cases where elements like input (which cannot have pseudo-elements) become the desired trigger element for a tooltip (#3018). To deal with this, we must place the tooltip on a containing element that supports pseudo-elements. However this creates another issue where the tooltip trigger is no longer the desired trigger element (as the desired trigger element is nested within the actual trigger element).

To get around this issue, we need a way to display the tooltip (attached to the parent element) when the child element is focused. One solution for this is the :focus-within pseudo-selector, but this is unsupported in IE11 and Edge. So an alternative solution would be to define a CSS class that contains the styles necessary to show the tooltip

"Must have" functionality

the user can define a class which will display the tooltip

@stale
Copy link

stale bot commented Oct 18, 2019

We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions.

@stale stale bot added the status: inactive Will close if there's no further activity within a given time label Oct 18, 2019
@stale
Copy link

stale bot commented Oct 21, 2019

As there's been no activity since this issue was marked as stale, we are auto-closing it.

@stale stale bot closed this as completed Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: inactive Will close if there's no further activity within a given time type: enhancement 💡
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant