User tests: Successful: Unsuccessful:
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
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End Templates (site) |
Labels |
Added:
?
|
Labels |
Added:
a11y
|
I have tested this item
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.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Is this tested that the whole site does not break, if the title contains a quote ( " )?
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
Labels |
Added:
?
|
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"
Status | Ready to Commit | ⇒ | Pending |
Back to pending
Labels |
Removed:
?
|
Please retest
I have tested this item
I have tested this item
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
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
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 |
Thanks!
@Worti2 this looks good to me. Could you please test this with your user?