News for hackers. Stuff that matters.
Re:Just Use a Button by jmull on Friday October 31, 2025 @03:37PM (#45775855)
How is it harder to learn “want normal button” => <button type=“button”…> than “want normal button” => <div role=“button” tabindex=“0”…>, plus the javascript for keyboard access (plus css for at least the cursor), etc.?
Re:Just Use a Button by culi on Friday October 31, 2025 @04:31PM (#45776377)
Agreed. It's not hard and it's definitely not unreasonable to expect front-end developers to know the very basics of semantic HTML and accessibility standards. It's literally their jobs