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-19145: Edit button must be unaccessible for keyboard while in edit mode #2191
Conversation
…dit mode * Made the anchor semantically disabled when it used to do so visually (and get back to the regular state) * Removed the role=button from the menu anchors. * Updated LESS to fit code style and keep a visually appealing TODO: check tests
…dit mode * Fixed tests
As far as I can see, these changes only target inplace editing. What about the other edit modes (like WYSIWYG) that are also mentioned in the issue? |
@michitux (Added this as a comment on the jira ticket so it'll be easier to find later) |
In other words, did you test with a page like localhost:8080/xwiki/bin/edit/Sandbox/WebHome?editor=wysiwyg ? Also, I'm not fully sure to understand the issue but some other advanced edit mode could be impacted as well. |
@manuelleduc The accessibility issue reported is for when the button looks "disabled" such as when editing inplace: You can see on the screens above that the looks of the edit button are not the same. The issue is that the button, even if it looked disabled and did not react to mouse clicks during inplace editing, was not disabled for keyboard users. At first when reading the issue I thought that the edit button would be greyed out even in Wysiwyg edit mode, but it is not. |
ok, that's the part I was missing :) Thanks! |
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.
Overall this looks good, but the page object has a conflict that needs to be fixed and I would suggest to re-run tests to ensure that this still works after the recent changes regarding button vs. link in #2171.
.../xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/BasePage.java
Outdated
Show resolved
Hide resolved
.../xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/BasePage.java
Outdated
Show resolved
Hide resolved
.../xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/BasePage.java
Outdated
Show resolved
Hide resolved
.../xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/BasePage.java
Outdated
Show resolved
Hide resolved
…dit mode * Fixed formatting
Jira: https://jira.xwiki.org/browse/XWIKI-19145
PR Changes:
Notes
Before vv
After vv
View
Video demo: https://up1.xwikisas.com/#hTNmIXq9INwB0FZ7m11OBw
Tests
Successfully passed the tests:
mvn clean install -Pquality,integration-tests,docker -f xwiki-platform-core/xwiki-platform-test/ -Dxwiki.test.ui.wcag=true
mvn clean install -Pquality,integration-tests,docker -f xwiki-platform-core/xwiki-platform-edit/ -Dxwiki.test.ui.wcag=true