Fix: permanent player tooltip #9119
Conversation
Head branch was pushed to by a user without write access
|
I found a small edge case:
minor_edge_case.mp4 |
|
Thanks for testing, it is indeed a bug! It comes from the fact that I only clear tooltip for the button corresponding to the shortcut key, but it could be a different tooltip shown. |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
edge_case.mp4the edge case is fixed from my testing |
Co-authored-by: PikachuEXE <git@pikachuexe.net>
Head branch was pushed to by a user without write access
Pull Request Type
Related issue
closes #8046
Description
When a button is clicked, it gains
:focus, and then, when a shortcut is used (it can be any button in the player and the button clicked does not need to be hovered anymore), the:focus-visiblestate becomestrueand stay like this until the focus is lost by clicking elsewhere.According to Shaka Player's CSS rules), the
:focus-visiblepseudo-class keeps the tooltip visible until focus is removed.Calling blur() after a keyboard shortcut is triggered removes the focus by clearing the
:focus-visiblestate, hiding the tooltip.Screenshots
No visible change to show
Testing
Scenario 1
Scenario 2 (thanks aditya0155)