[4.0] [a11y] add statement on found results#30535
[4.0] [a11y] add statement on found results#30535wilsonge merged 11 commits intojoomla:4.0-devfrom hans2103:feature/4.0-dev-a11y--com_finder-add-statement-of-search-results
Conversation
|
what about giving the message a role="alert" ? that way it should result in the number of results being announced immediately on page load |
just wrote a new issue @brianteeman I see you write |
|
You cant use status as that is for live regions ie parts of the page that are updated |
|
thank you.
Do you mean something like this: |
|
Sorry I used the word message incorrectly - i think You can just put the role on the existing element - you dont need to use the enqueMessage as that creates a message at the top of the page (doesnt it?) |
|
@brianteeman I've added |
|
thats not going to work and its also not good practice to put markup inside a language string this should work (not tested as I'm on my phone) . replace div if needed with any block element |
|
@brianteeman thank you for the feedback. Assuming blog is required, the following 5 results were found. |
|
I have tested this item ✅ successfully on 6eca68f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30535. |
|
@Quy and @brianteeman thank you for your contributions. I did some tests with plural to prevent the double strings. But it failed on my test. Now it seems to work and that makes me happy. |
|
@hans2103 There is a |
Co-authored-by: Quy <quy@fluxbb.org>
Co-authored-by: Quy <quy@fluxbb.org>
Co-authored-by: Quy <quy@fluxbb.org>
|
@Quy thank you.. I was trying to merge the suggestions through the overview of changed files. But that didn't stick. |
Co-authored-by: Quy <quy@fluxbb.org>
|
I have tested this item ✅ successfully on 709eb8b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30535. |
Co-authored-by: Quy <quy@fluxbb.org>
|
I have tested this item ✅ successfully on f7c9996 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30535. |
|
I have tested this item ✅ successfully on f7c9996 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30535. |
|
Thanks! |
…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) ...
Pull Request for Issue # .
Summary of Changes
With this PR I've added the total amount of search results and a link to the search results.
I am missing a statement about how many search results were found. I only get this information when no results are found.
When search results are found I would like to be able to click on it and jump directly to the results.
Testing Instructions
blogand see the results.Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
screenshot 1
When there are no results add a link to search again

screenshot 2
When there are results add a link to jump to the results. Just like a skip-link
