Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.1] Add label to the collapsible menu #36900

Merged
merged 13 commits into from
Apr 2, 2022
Merged

Conversation

brianteeman
Copy link
Contributor

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

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.
@chmst
Copy link
Contributor

chmst commented Jan 31, 2022

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

@BertaOctech
Copy link

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.

@RickR2H
Copy link
Member

RickR2H commented Feb 11, 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.

@RickR2H
Copy link
Member

RickR2H commented Feb 11, 2022

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 11, 2022
@bembelimen
Copy link
Contributor

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

@brianteeman
Copy link
Contributor Author

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

@brianteeman
Copy link
Contributor Author

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

@brianteeman
Copy link
Contributor Author

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"

@chmst
Copy link
Contributor

chmst commented Feb 22, 2022

Back to pending


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

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 22, 2022
@brianteeman
Copy link
Contributor Author

Please retest

Co-authored-by: Quy <quy@fluxbb.org>
@Quy
Copy link
Contributor

Quy commented Mar 7, 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.

@pabloarias
Copy link

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.

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 20, 2022
@Quy Quy added this to the Joomla 4.1.3 milestone Apr 2, 2022
@laoneo laoneo merged commit 5e995bb into joomla:4.1-dev Apr 2, 2022
@laoneo
Copy link
Member

laoneo commented Apr 2, 2022

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.

10 participants