-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
XWIKI-18838: Use ARIA landmarks for main page regions #2166
Conversation
* Replaced all div with id mainContentArea by main elements
* Changed the position of the main content on pages where it needs to be more specific (e.g. view, now main only has the text, and ToS users don't need to go through the breadcrumb on every use)
* Fixed the main landmarks to include title See https://forum.xwiki.org/t/accessibility-best-practice-landmarks/12051/7
* Updated the edit template On hold on https://forum.xwiki.org/t/accessibility-best-practice-landmarks/12051/8
* Removed the hierarchy from main on multiple pages.
* Fixed the main size on pdfoptions.vm
* Updated the test resources Note: Conducted tests on the standards validator module, everything passes: https://up1.xwikisas.com/#RY7BYLLfd_ijp74PbDlFkg
Ready for reviewPR Changes:
Note: Tests on the |
...m-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/delete.vm
Outdated
Show resolved
Hide resolved
...o-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/docdoesnotexist.vm
Outdated
Show resolved
Hide resolved
...amingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/editinline.vm
Outdated
Show resolved
Hide resolved
* Removed the condition on editinline main instantiation. Note: It seems like the structure above the content is generated with another template (or overwritten??) when AllowDocEdit is false.
While I agree that it might be preferable to not to have the breadcrumbs in the main content I wonder if it is really a good idea to have on some pages Line 603 in f472a03
Also, see #1667, I think it would be nice to have a consistent jump target for the skip header link. Maybe we should re-consider the decision to (not) include the breadcrumbs in the main content area. |
Why we left the breadcrumb out of the I think the best solution is to move the |
As I've just found it, here is another comment saying that breadcrumbs shouldn't be part of the main content: w3c/aria-practices#1469 (comment). |
* Set the #mainContentArea on all the previously defined `main` nodes. * Tried to fix some display issues Note: This change in the architecture broke some presentation and there's still manual tests to see if the style fixes are enough.
* Fixed style
* Homogenized changes
* Fixed changes on whatsnew.vm
* Fixed changes on whatsnew.vm
* Fixed changes on whatsnew.vm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but there is a conflict that prevents merging.
Jira: https://jira.xwiki.org/browse/XWIKI-18838
PR Changes:
Notes:
main
landmarks on the page, one inside an iframe in the other). AFAIK this is only on a few pages accessible by admins (e.g. color theme editing) so it's okay.main
landmark depends on the templates, since we don't want to include breadcrumbs in it. Typically, it was either: set on the mainContentArea if it doesn't start with a "top breadcrumb", or set on a new DOM element that contains the title and the content of the page (without the breadcrumb).nav
landmarks.View:
Those screenshots were made with the landmark extension for Firefox.
You should look for the
Main
landmark indicated with a pink square on every screenshot