Skip to content

[4.0] Form label [a11y]#32060

Merged
wilsonge merged 12 commits intojoomla:4.0-devfrom
brianteeman:form_name
Jan 24, 2021
Merged

[4.0] Form label [a11y]#32060
wilsonge merged 12 commits intojoomla:4.0-devfrom
brianteeman:form_name

Conversation

@brianteeman
Copy link
Copy Markdown
Contributor

@brianteeman brianteeman commented Jan 16, 2021

Each <form> element and form role that needs to be exposed as a landmark must be given an accessible name. This name will allow an assistive technology user to be able to quickly understand the purpose of the form landmark.

You can easily test this with the skipto plugin. Before this PR the item is just Form After this PR the item is either Form: New xxxx or Form: Edit xxx

  • com_banners
  • com_categories
  • com_contact
  • com_content
  • com_fields
  • com_finder
  • com_installer
  • com_languages
  • com_mails
  • com_menus
  • com_messages
  • com_modules
  • com_newsfeeds
  • com_plugins
  • com_privacy
  • com_redirect
  • com_tags
  • com_templates
  • com_users
  • com_workflow

Each `<form>` element and form role that needs to be exposed as a landmark must be given an accessible name. This name will allow an assistive technology user to be able to quickly understand the purpose of the form landmark.

You can easily test this with the skipto plugin. Before this PR the item is just _Form_ After this PR the item is either _Form: New xxxx_ or _Form: Edit xxx_

- [x]com_categories
- [x]com_contact
- [x]com_content
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.0-dev labels Jan 16, 2021
@joomla-cms-bot joomla-cms-bot removed the Language Change This is for Translators label Jan 16, 2021
@brianteeman brianteeman marked this pull request as ready for review January 16, 2021 15:43
@carcam
Copy link
Copy Markdown

carcam commented Jan 21, 2021

Weird enough the patch does not update the language file so the aria-label shows just the key string...

@brianteeman
Copy link
Copy Markdown
Contributor Author

Thats probably patchtester bug - i think it has issues when you have a lot of files.

@carcam
Copy link
Copy Markdown

carcam commented Jan 22, 2021

It looks like it. Changes in code reflect the language string so I will test it again and will take that into consideration.

@Quy Quy added the a11y Accessibility label Jan 23, 2021
@wilsonge wilsonge merged commit ea35492 into joomla:4.0-dev Jan 24, 2021
@wilsonge
Copy link
Copy Markdown
Contributor

Merging on review - as if patchtester fails we're unlikely to get many tests and this is a pretty simple patch

@wilsonge wilsonge added this to the Joomla 4.0 milestone Jan 24, 2021
@brianteeman
Copy link
Copy Markdown
Contributor Author

thanks

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

Labels

a11y Accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants