? a11y ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
31 Jan 2022

This PR takes the module title and uses it as an aria-label for the nav container of the default collapsible menu and the collapse-metismenu override in cassiopeia.

Pull Request for Issue #36839

image

avatar brianteeman brianteeman - open - 31 Jan 2022
avatar brianteeman brianteeman - change - 31 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2022
Category Modules Front End Templates (site)
avatar brianteeman brianteeman - change - 31 Jan 2022
Labels Added: ?
avatar chmst
chmst - comment - 31 Jan 2022

@Worti2 this looks good to me. Could you please test this with your user?

39e9fa6 31 Jan 2022 avatar brianteeman space
avatar brianteeman brianteeman - change - 31 Jan 2022
Labels Added: a11y
avatar BertaOctech BertaOctech - test_item - 4 Feb 2022 - Tested successfully
avatar BertaOctech
BertaOctech - comment - 4 Feb 2022

I have tested this item successfully on 0cf0845

I applied the patch and in fact the title of the module was included in the nav item as aria-label, as described. I marked the test as successful.

However, I wonder if this could be confusing. The title of the menu module is not always shown in the frontend. Either because the menu is in the menu position and not in the sidebar or because the author has decided to hide it. In this case you are using a label which is not visible in the screen.

I guess we should choose appropriate names for our menu modules in any case.


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

avatar RickR2H RickR2H - test_item - 11 Feb 2022 - Tested successfully
avatar RickR2H
RickR2H - comment - 11 Feb 2022

I have tested this item successfully on 0cf0845


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

avatar RickR2H RickR2H - change - 11 Feb 2022
Status Pending Ready to Commit
avatar RickR2H
RickR2H - comment - 11 Feb 2022

RTC


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

avatar bembelimen
bembelimen - comment - 22 Feb 2022

Is this tested that the whole site does not break, if the title contains a quote ( " )?

avatar brianteeman
brianteeman - comment - 22 Feb 2022

Is this tested that the whole site does not break, if the title contains a quote ( " )?

Good spot. I will update it to address that

avatar brianteeman
brianteeman - comment - 22 Feb 2022

Just to point out - nothing breaks with any extra " - its just the aria label that gets truncated - still needs fixing but not disruptive

avatar brianteeman brianteeman - change - 22 Feb 2022
Labels Added: ?
avatar brianteeman
brianteeman - comment - 22 Feb 2022

Updated.

If a module title contains a " then the aria label was truncated at the ".

This update just strips the "

before aria-label="module title " here"
after aria-label="module title here"

avatar chmst chmst - change - 22 Feb 2022
Status Ready to Commit Pending
avatar chmst
chmst - comment - 22 Feb 2022

Back to pending


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

avatar brianteeman brianteeman - change - 2 Mar 2022
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 2 Mar 2022

Please retest

avatar Quy
Quy - comment - 7 Mar 2022

I have tested this item successfully on ce09280


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

avatar Quy Quy - test_item - 7 Mar 2022 - Tested successfully
avatar pabloarias
pabloarias - comment - 18 Mar 2022

I have tested this item successfully on ce09280

Tested in Joomla 4.1.1-dev with PHP 8.0.15.

I agree with @BertaOctech: if you choose to not show module title, aria label is still showed. Maybe it shouldn't.

Thanks


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

avatar pabloarias pabloarias - test_item - 18 Mar 2022 - Tested successfully
avatar richard67 richard67 - change - 20 Mar 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 20 Mar 2022

RTC


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

avatar brianteeman brianteeman - change - 1 Apr 2022
Labels Added: ?
avatar laoneo laoneo - change - 2 Apr 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-04-02 08:47:38
Closed_By laoneo
avatar laoneo laoneo - close - 2 Apr 2022
avatar laoneo laoneo - merge - 2 Apr 2022
avatar laoneo
laoneo - comment - 2 Apr 2022

Thanks!

Add a Comment

Login with GitHub to post a comment