Feature/cms 1091 ability to move entries to a new section#14541
Merged
brandonkelly merged 62 commits into5.3from Jul 24, 2024
Merged
Feature/cms 1091 ability to move entries to a new section#14541brandonkelly merged 62 commits into5.3from
brandonkelly merged 62 commits into5.3from
Conversation
…ements Update tooltip to work on disabled elements
…on' of https://github.com/craftcms/cms into feature/cms-1091-ability-to-move-entries-to-a-new-section
…-new-section # Conflicts: # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map # src/web/assets/cp/dist/css/cp.css # src/web/assets/cp/dist/css/cp.css.map
Member
|
Rather than showing the “Couldn’t find any sections that all selected elements could be moved to.” message in the modal, ideally the “Move to” action is just grayed out ahead of time if there aren’t any other sections with the same entry type. This should be doable via the |
gcamacho079
requested changes
Mar 12, 2024
Contributor
There was a problem hiding this comment.
Just finished a quick scan of the modal contents:
- The section buttons should have an
aria-pressedvalue that toggles between true and false (see internal documentation re: exclusive button groups) - The Move button's
aria-disabledstate should be toggled when a section is selected - The focus indicator for the move icon is under 3:1 contrast ratio against the modal footer background. This is a larger global issue caused by the disabled element opacity.
- The focus indicator for the button is difficult to see since it doesn’t contrast against the dark background. This could benefit from a two-toned focus indicator, like the one used in the global skip link, with a white outline adjacent to the button background.
- Loading spinner that appears in modal content body should have an equivalent status message that is read for screen reader users.
Note that some of these (like the disabled button focus outline) may be larger/more global issues than the scope of this PR.
…-new-section # Conflicts: # .github/workflows/ci.yml # src/elements/Entry.php # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map # src/web/assets/cp/dist/css/cp.css # src/web/assets/cp/dist/css/cp.css.map # src/web/assets/cp/src/js/CraftElementLabel.js # src/web/assets/garnish/dist/garnish.js # src/web/assets/garnish/dist/garnish.js.map
…-new-section # Conflicts: # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map # src/web/assets/cp/dist/css/cp.css # src/web/assets/cp/dist/css/cp.css.map
…bility-to-move-entries-to-a-new-section
Contributor
|
A few accessibility improvements based on automated and manual testing:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds element index action to move entries between sections.
Notes:
maxAuthorslimit, no data is changed/lost for the entries, but the next time they’re saved, a validation error will be showncraft-tooltipto work with disabled elements!Related issues
cms-1091