Skip to content

Replace <a> with <button> for interactions that stay on the page - #2506

Open
kimisgold wants to merge 42 commits into
developfrom
anchors-to-buttons
Open

kimisgold wants to merge 42 commits into
developfrom
anchors-to-buttons

Conversation

@kimisgold

Copy link
Copy Markdown
Member

From the beginning of Omeka S's development, we had established a pattern of using anchors where we actually wanted buttons for js-powered page interactions. This branch corrects most of these patterns to use the <button> element.

* Starts with advanced search form.
* Also corrects missing group roles on fields.
* Adds missing `aria-expanded` and `aria-controls`.
* Adjust styles to ensure proper touch target sizing and colors
reflecting interactive element.
If a button has a different label and still uses the toggle
functionality, the expand/collapse aria-label overrides it.
Also takes text indent off of actions.

(#2408)
* Also adds `aria-expanded` attr.
* TODO: also apply `aria-controls`.

(#2408)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant