-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Deprecate CSS tooltip #1936
Deprecate CSS tooltip #1936
Conversation
🦋 Changeset detectedLatest commit: 7dd10eb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
All the examples here set |
Yeah I think there's no harm in updating the examples. In addition to what you've done here, you should add the classes to https://github.com/primer/css/blob/kh-deprecate_tooltip_please/src/deprecations.json with null as the replacement, ie. |
@jonrohan Neat linter!! I'm concerned we will need to add linter disable comment to every file given the extensive use of tooltips. I've proposed a PR in |
Related: https://github.com/github/accessibility/issues/670
What are you trying to accomplish?
This PR deprecates tooltip. These tooltips are frequently being applied on static elements making them completely inaccessible for groups of our users.
What approach did you choose and why?
We are currently in process of upstreaming a more accessible tooltip to PVC. That work is not complete yet, but I think it's fine to move this to deprecated to discourage usage.
What should reviewers focus on?
If I set this to deprecated, what effect will it have? One painpoint I'm seeing is that these tooltips are frequently being applied to static elements. Is it worth updating examples to not set tooltips on static elements, even though if this is deprecated?
Also, should we explain why we're deprecating this?
Are additional changes needed?