Y
Hacker News
new
|
ask
|
show
|
jobs
by
cabalos
1548 days ago
Element visibility should not be triggered via focus or hover. Visibility states should be triggered with a button click or enter key press.
1 comments
runarberg
1548 days 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.
link