On the semantic web

🫧 Open on Bubbles The easiest way to make an interface harder to maintain is to rebuild the browser badly. A div can look like a button. It can be given a click handler, a pressed style, a hover state, a focus ring, an ARIA role, a keydown listener for Enter, another one for Space, a disabled class that hopefully also blocks interaction, and enough attributes to convince assistive tech that it is interactive. Or it can be a button . That sounds obvious until you look inside a lot of modern component librari

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论