-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
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.
@Worti2 this looks good to me. Could you please test this with your user? |
I have tested this item ✅ successfully on 0cf0845 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. |
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. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36900. |
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 |
Just to point out - nothing breaks with any extra " - its just the aria label that gets truncated - still needs fixing but not disruptive |
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" |
Back to pending This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36900. |
Please retest |
Co-authored-by: Quy <quy@fluxbb.org>
Co-authored-by: Quy <quy@fluxbb.org>
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. |
I have tested this item ✅ successfully on ce09280 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. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36900. |
Thanks! |
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