Skip to content

[4.0] [a11y] com_finder :: add missing legend to fieldset#30528

Merged
laoneo merged 1 commit intojoomla:4.0-devfrom
hans2103:feature/4.0-dev-a11y--com_finder-missing-legend
Sep 2, 2020
Merged

[4.0] [a11y] com_finder :: add missing legend to fieldset#30528
laoneo merged 1 commit intojoomla:4.0-devfrom
hans2103:feature/4.0-dev-a11y--com_finder-missing-legend

Conversation

@hans2103
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

After a11y testing the search form of component com_finder using WAVE it alerted me with the following message:
Fieldset missing legend

This PR changes a couple of things:

  • add a <legend> to the <fieldset> of the search field section
  • change <div> into <fieldset> of the advanced search section
  • add a <legend> to the <fieldset> of the advanced search section
  • add className sr-only to both fieldsets to keep is visually hidden.

Testing Instructions

  • Apply search... this will lead you to the search results on com_finder
  • Inspect element on the search form and notice there is no <legend> in the <fieldset>
  • Apply this PR
  • Inspect element on the search form and notice the changes from above

Actual result BEFORE applying this Pull Request

Screenshot taken from my dev tools
Schermafbeelding 2020-08-31 om 17 33 58

Expected result AFTER applying this Pull Request

Screenshot taken from my dev tools
Schermafbeelding 2020-08-31 om 17 34 15

Documentation Changes Required

@brianteeman
Copy link
Contributor

brianteeman commented Aug 31, 2020

Apply search... this will lead you to the search results on com_finder

how does it lead me to the results?

@hans2103
Copy link
Contributor Author

@brianteeman sorry for my bad English.

On my Joomla 4 test site (https://joomla4.test) I've installed Blog Sample Data.
This will place a search form in the header.
When you use this form and press the search button, the url of the page changes to http://joomla4.test/index.php/component/finder/search?q=blog&Itemid=101&Itemid=101

With this I mean "lead you to the search results on com_finder".
How should I have written it? It will help me to write better test instructions in the future.

@brianteeman
Copy link
Contributor

Never apologise for bad english - its far better than my dutch.

"This will load the search results" is probably ok

Now for the reason I asked the question. I had hoped by your description that you had fixed the accessibility problem when the search is performed and the results are displayed. Obviously as I misunderstood what you were writing you did not and I guess it will need to be in another PR but for the sake of completeness I will write it here.

When you enter a search term and press the search button the page reloads and anyone using a screen reader will have to navigate all the way down the page and past the search form in order to find out if there are any results. They should be taken to the results immediately OR there should be an announcement that there are x results on page load. Its even worse when the advanced link (it should be a button) is selected

@hans2103
Copy link
Contributor Author

hans2103 commented Sep 1, 2020

@brianteeman thank you
Will create multiple steps to improve the accessibility of com_finder.
This baby step is one of them.

I think this PR will solve one of the a11y issue. Missing legend in the fieldset.

@paternax
Copy link

paternax commented Sep 1, 2020

I have tested this item ✅ successfully on dac3f90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30528.

1 similar comment
@Quy
Copy link
Contributor

Quy commented Sep 1, 2020

I have tested this item ✅ successfully on dac3f90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30528.

@Quy Quy removed Language Change This is for Translators PR-4.0-dev labels Sep 1, 2020
@Quy
Copy link
Contributor

Quy commented Sep 1, 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30528.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 1, 2020
@Quy Quy added the PR-4.0-dev label Sep 1, 2020
@laoneo laoneo merged commit 664eabc into joomla:4.0-dev Sep 2, 2020
@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Sep 2, 2020
@laoneo
Copy link
Member

laoneo commented Sep 2, 2020

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 2, 2020
@hans2103 hans2103 deleted the feature/4.0-dev-a11y--com_finder-missing-legend branch September 2, 2020 12:58
@laoneo laoneo added this to the Joomla 4.0 milestone Sep 2, 2020
dgrammatiko added a commit to dgrammatiko/joomla-cms that referenced this pull request Sep 29, 2020
…om_templates

* '4.0-dev' of github.com:joomla/joomla-cms: (70 commits)
  [4.0] Child templates consistency (joomla#30387)
  [4.0] favicon changes to support child templates (joomla#30388)
  [4.0] Update Readme for Api tests (joomla#30539)
  [4.0] [Multilingual Status module] Adding displaying a possible error if URL Language Code is empty (joomla#30537)
  [4.0] Display of horizontal mod_articles_news module (joomla#30527)
  [4.0] Useless installation lang strings (joomla#30568)
  [4.0] Numbers not digits (joomla#30559)
  [4.0] Accessibility plugin position (joomla#30552)
  [4.0] fix for inherit fields (joomla#30557)
  [4.0] Redundant words (joomla#30555)
  add missing legend to fieldset (joomla#30528)
  [4.0] [a11y] add statement on found results (joomla#30535)
  [4.0] com_finder ul instead of dl for easier styling (joomla#30534)
  [4.0] Messages/Alerts: using icons instead of text as heading (joomla#30516)
  [4.0] Increase API Test Coverage (joomla#26722)
  [4.0] Implementing display of password requirements for frontend (joomla#30473)
  [4.0] FieldsHelper: Choose a first available category  correctly (joomla#30268)
  Sort options (joomla#30531)
  Clear checkboxes on back button (joomla#30498)
  Update _icomoon.scss (joomla#30436)
  ...
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Comments