Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cabalos
· 4y ago · 0 comments
Element visibility should not be triggered via focus or hover. Visibility states should be triggered with a button click or enter key press.
Comments
[–]
runarberg
4y ago
Indeed, you should probably just use "<details>" and "<summary>" for drop downs today (works perfectly without any javascript and have accessibility built in). CSS only dropdowns were a hack for an era before these elements were widely supported.