[openstreetmap/openstreetmap-website] Always use button elements for Remove social link buttons (PR #6062)

Anton Khorev notifications at github.com
Thu May 29 13:04:16 UTC 2025


AntonKhorev left a comment (openstreetmap/openstreetmap-website#6062)

> The only real use I could think of was accessibility but the actual links aren't numbered once they're filled in so it doesn't seem like it helps with relating them to the remove buttons.

Placeholders are announced by screen readers (at least the on that comes with Ubuntu) even when not visible. But `<label>` is announced too and may take precedence. Now I removed `<label>`s from `.html.erb` and I'm labelling the inputs with `placeholder` and `aria-label` attributes, like GitHub does in this form:
![image](https://github.com/user-attachments/assets/841635ea-86ef-46fa-9d91-072aa592f179)


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6062#issuecomment-2919329923
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6062/c2919329923 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250529/39849694/attachment.htm>


More information about the rails-dev mailing list