Dropdowns won’t work on browsers based on webkit #9
Labels
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: phundrak/nord-for-org#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some reasons, dropdowns don’t work on webkit-based browsers such as Safari or Surf. I suspect it is due to the
:focus-within
pseudo-class being badly handled by the engine. A fix for this could be to use a.hidden
class in the elements that are to be hidden. This class could be removed on a list click, and added back when another click is detected on the document. The element could stay shown with the:focus
pseudo-class on the drop-down.After much research, sweat, tears, and blood, I finally came across this blog post which finally gave me the key for fixing this god awful implementation of
:focus-within
that plagues WebKit. A commit should be pushed in the next few minutes to fix this awful bug.Fixed in commit
272bd93ed8
. Closing.