News for hackers. Stuff that matters.
Re:Building a Magical 3D Button with Vanilla HTML/CSS by dsun180 on Tuesday March 30, 2021 @02:27PM (#26638362)
You should add "user-select: none;" so it looks better on touch devices without the blue selection box.
Re:Building a Magical 3D Button with Vanilla HTML/CSS by Etheryte on Tuesday March 30, 2021 @04:10PM (#26639767)
Breaking accessibility for looks is the cardinal sin of web development. The two are not exclusive and often it's actually less work to make things accessible — simply don't break the built in functionality. It's a widespread issue and mostly I'd put the onus on bad education: to this day, many big libraries have very poor accessibility both in their code examples and their components. The true measure of a website's user interface is not whether it's pretty, it's whether it's usable, by everyone.
Re:Building a Magical 3D Button with Vanilla HTML/CSS by cyral on Tuesday March 30, 2021 @04:15PM (#26639827)
As an alternative, you can make a custom focus style so that it is accessible but also pretty.