Skip to content
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

Accessibility Issue in Arranging the Menu Items #6238

Closed
wants to merge 49 commits into from

Conversation

Rcreators
Copy link

Trac ticket: https://core.trac.wordpress.org/ticket/43305


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link

github-actions bot commented Mar 8, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props rcreators, joedolson, berislavgrgicak.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link

github-actions bot commented Mar 8, 2024

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@bgrgicak
Copy link

Found it! The branch name starts with # and we didn't encode the name.

@Rcreators
Copy link
Author

@bgrgicak So do I remove the # from the branch name cause I am using it for all the branches according to ticket no. But if that solves the issue. I will update all branch names.

@bgrgicak
Copy link

Wrong place. I wanted to comment on this issue WordPress/wordpress-playground#1260.

@bgrgicak So do I remove the # from the branch name cause I am using it for all the branches according to ticket no. But if that solves the issue. I will update all branch names.

No, this PR should fix it WordPress/wordpress-playground#1275

@Rcreators
Copy link
Author

@joedolson Everything is done except item visibility. Once this commit merges, I think we can create a separate ticket to add it to the screen option. Feel free to let me know if you find any more changes.

Rcreators and others added 6 commits October 15, 2024 18:22
- Entire parent update function updated to count items properly after detaching menu item and its children and put them back to menu at defined location.
- var menuItems = $( '#menu-to-edit li' ),
                         ^ 'menuItems' is already defined. - Removed Var from this instance
 - var menuItemWithChild, menuItemNewPosition,
                         ^ 'menuItemWithChild' is defined but never used. - Removed
- menuItemPosition = parseInt( menuItem.index(), 10 ),
                         ^ 'menuItemPosition' is defined but never used. - Removed
- parentItemChildern = parentItem.childMenuItems(),
                         ^ 'parentItemChildern' is defined but never used. - Removed
Forgetting Spaces :-)
@joedolson
Copy link
Contributor

@Rcreators I made a number of minor changes (CSS & ordering), but also made a logic change in 65b376f. I found that this logic was causing any child item that was moved to the bottom position of its menu to become a child of the next neighbor.

@joedolson
Copy link
Contributor

In testing, I'm continuing to find some minor bugs in behavior with nested menus. It all seems to be the same basic problem: menus dropping to a new parent if their order is changed to the bottom of their current context. So it seems like an off-by-one type of issue.

We're getting very down to the wire on shipping this in 6.7; I'll see what I can do, but might need to bump this to 6.8.

@joedolson
Copy link
Contributor

In r59265

@joedolson joedolson closed this Oct 21, 2024
@Rcreators Rcreators deleted the #43305 branch October 22, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants