-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Selectors API: Make duotone selectors fallback and be scoped #49423
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7735980
Make duotone selectors fallback and be scoped
aaronrobertshaw 0c52d64
Use whole selectors for duotone as well
oandregal 02bfc17
Update the block-level duotone selector
oandregal e5ed227
Use existing function
oandregal e60c4b7
scope the selectors in the post editor
scruffian 555f7d0
Duotone: do not scope twice
oandregal 64a505a
Simplify __experimentalDuotone backwards compatibility
3cd86f0
Update the __experimentalDuotoen back compat to explicitly handle eac…
7d370c6
Simplify adding the filter class to the selectors
521db54
Refactor to handle __experimentalDuotone where it was previously handled
fc2f0c0
Remove some dead code that I missed
53410e5
Fix lint
42e1b3f
Remove __experimentalDuotone test since it doesn't handle that anymore
50997ca
Remove remainder of duotone tests because it is no longer handled dif…
b9d16ea
Fix getBlockSelectors test because __experimentalDuotone now always r…
31aa06e
Fix rendering when preset doesn't exist
114ec2b
Fix unset filters
da60b58
Fix typos
aaronrobertshaw 6a750e3
Update docs
aaronrobertshaw 2236ce5
Tweak incorrect comment
aaronrobertshaw 972dca7
Fix duotone support flag relocation
aaronrobertshaw b401c12
Add filter.duotone to block-supports docs
aaronrobertshaw 59b135e
Add filter.duotone to block.json schema
aaronrobertshaw 6367140
Be more precise in filterId selector comment
f1506d0
Fix filters in editor applying to cover block text
502f8b4
Remove comment I accidentally committed
571681e
Remove __experimentalDuotone from color supports docs
5f16e9c
Add example to the filter.duotone docs
bd02cb2
Move migration into duotone class
b20c08e
Add deprecation note to experimentalDuotone docs
a7337a7
Fix PHP lint
7e7bf1c
Fix PHP lint
3346b9a
Correct experimental BC comments and tweak flow
aaronrobertshaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.