#60488 closed defect (bug) (fixed)
Plugins dependencies notice alters visual and DOM order in the plugin cards
Reported by: | afercia | Owned by: | costdev |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | Plugins | Keywords: | has-screenshots has-patch commit |
Focuses: | ui, accessibility | Cc: |
Description
Noticed while testing https://core.trac.wordpress.org/ticket/22316
For accessibility, visual order and DOM order must alwasy match when they affect 'meaning and functionality'.
Basically, altering the visual order via CSS properties like order
and the various flexbox/grid reverse
properties must be avoided. It is only allowed for purely decorative elements like, for example, the position of an icon within a button (there was such a case in the Gutenberg editor).
The CSS recently added for the plugin dependencies alters the reading order of elements within the plugin cards in the 'Add Plugin' admin pave. See attached screenshot where I added numbers to illustrate the DOM order doesn't match the visual order.
Attachments (2)
Change History (21)
#1
@
7 months ago
- Component changed from Upgrade/Install to Plugins
- Milestone changed from Awaiting Review to 6.5
- Owner set to costdev
- Status changed from new to assigned
#2
@
7 months ago
- Summary changed from Plugins dependencies notice alters visual and DOM order in teh plugin cards to Plugins dependencies notice alters visual and DOM order in the plugin cards
This ticket was mentioned in PR #6078 on WordPress/wordpress-develop by @costdev.
7 months ago
#4
- Keywords has-patch added
In 57545, the notice for listing dependencies in a plugin card were styled with the CSS order
properties. This created a mismatch between the visual order and DOM order of elements in the plugin card.
For accessibility, visual order and DOM order must always match when they affect meaning and functionality.
This removes the CSS order
properties and outputs the dependencies notice later, making the visual and DOM order match.
#5
@
7 months ago
- Keywords needs-testing added
@afercia I've submitted PR 6078 which removes the CSS order
properties and corrects the DOM order.
Please test 🙂 and remember to build as this makes CSS changes.
When you mention "the various flexbox/grid reverse
properties", can you confirm whether this was just informative, or did you see any use of reverse
properties by Plugin Dependencies? I want to make sure I don't miss anything.
Thanks!
#9
@
7 months ago
Test Report
Patch tested: https://github.com/WordPress/wordpress-develop/pull/6078
Screenshots
Before Apply Patch | After Apply Patch ✅ |
@
7 months ago
I think the "plugin-dependencies" section should always set the "plugin-card-top" button area.
#10
@
7 months ago
When you mention "the various flexbox/grid reverse properties", can you confirm whether this was just informative, or did you see any use of reverse properties by Plugin Dependencies? I want to make sure I don't miss anything.
@costdev thanks. It was informative.
#11
@
7 months ago
- Keywords reporter-feedback added; needs-testing removed
Thanks @afercia!
Several testers have confirmed the patch works.
@afercia As the reporter, do you agree that PR 6078 resolves the reported issue and is ready for me to commit?
#13
@
7 months ago
@costdev yes I just tested the PR and it solves the a11y issue. I left a comment about an unrelated layout issue.
7 months ago
#14
@afercia Nicely spotted! I'll create a new ticket for this.
In the meantime, I've done a little digging into the overlap issue and to pave the way for a fix, I've moved the .plugin-dependencies
notice DIV outside of the .column-description
DIV. It's not part of the description anyway so this was a worthwhile change while we're here.
Can you give the PR another quick test to make sure everything's still working okay for the DOM order?
#15
@
7 months ago
@huzaifaalmesbah Good idea about keeping the notice to the bottom of the card for consistency!
Let's address this in #60501.
#16
@
7 months ago
Test Report
Description
When I apply the patch, it works perfectly.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/6078
Environment
- WordPress: 6.5-alpha-56966-src
- PHP: 8.2.15
- Server: nginx/1.25.3
- Database: mysqli (Server: 8.0.36 / Client: mysqlnd 8.2.15)
- Browser: Chrome 121.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Four 1.0
- MU Plugins: None activated
- Plugins:
- Test Reports 1.1.0
Actual Results
- ✅ Issue resolved with patch.
Screenshot after patch apply
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
7 months ago
7 months ago
#18
I just re-tested this PR and I can confirm it solves the order issue.
Besides the overlapping problem mentioned in a previous comment at https://github.com/WordPress/wordpress-develop/pull/6078#issuecomment-1938337017 that should be addressed separately, this looks good to me @costdev thank you ❤️
Thanks for reporting this @afercia!
I'll get working on a patch.
Moving to 6.5 for visibility and the Plugins component as it's more about the style and output of a plugin's data than it upgrade/installation.