8000 client: Fix tooltipped instances by moving class to interactive elements by kfranqueiro · Pull Request #4937 · thelounge/thelounge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

client: Fix tooltipped instances by moving class to interactive elements #4937

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kfranqueiro
Copy link
Contributor

Fixes #4865.

The current problems faced with the tooltipped CSS are discussed somewhat in #4865; this PR takes the approach of correcting usage in several instances so that the tooltipped class is applied to the interactive element (rather than e.g. a wrapping div or span).

Correcting this has the following effects:

  • aria-label no longer needs to be duplicated, as it is now on the one element that matters both in terms of CSS and interactivity
  • The tooltipped component CSS can now also work for focused state, which it was designed to do to begin with but was not working due to being applied to a non-focusable element

The few CSS changes in this PR allow icons to continue working, and prevent opacity changes from affecting the tooltip.

This PR intentionally does not cover all tooltipped instances. I have more work covering the rest that I would rather PR separately, as it also includes more interactivity fixes (for keyboard and e.g. screen readers) that overlap with the same elements. I wanted to send the more straightforward non-intertwined part first. Relatedly, I don't claim to also fix #4866 with this PR - that'll be covered in the other part.

@kfranqueiro kfranqueiro changed the title Fix many tooltipped instances to put classes on interactive elements client: Fix tooltipped instances by moving class to interactive elements Nov 12, 2024
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.

Duplication of aria-label in "Leave channel" wrapper Duplication of aria-label in "Send message" wrapper
1 participant
0