-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clear Apply and Cancel buttons to Link Control (#46933)
* Add initial Apply and Cancel buttons and refactor styles * Add improved cancellation logic * Update tests * Add unit tests for Cancellation * Fix Media flow tests * Add ability to supply callback to be triggered on cancelling * Fix input padding and spinner positioning * Add test coverage to check optional onCancel is not called if undefined * Update button text string in e2e test * Fix tab stops in test * Don't propgate the click back to the parent blocks * Fix more tab stops in tests * Fix another test tab stops * Fix snapshot missing open in new tab attributes * reset the URL to undefined rather than an empty string so that the popover doesn't reopen * Ensure correctly resetting all “link” attributes to true default state Co-authored-by: Ben Dwyer <ben@escruffian.com>
- Loading branch information
Showing
8 changed files
with
205 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
875628f
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.
Flaky tests detected in 875628f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3955960072
📝 Reported issues:
specs/editor/various/block-editor-keyboard-shortcuts.test.js