-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Border Radius: Prevent invalid css unit only styles or empty radii style attribute #42409
Merged
aaronrobertshaw
merged 2 commits into
trunk
from
fix/invalid-css-unit-only-border-radius-styles
Aug 15, 2022
Merged
Border Radius: Prevent invalid css unit only styles or empty radii style attribute #42409
aaronrobertshaw
merged 2 commits into
trunk
from
fix/invalid-css-unit-only-border-radius-styles
Aug 15, 2022
Conversation
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
aaronrobertshaw
added
[Type] Bug
An existing feature does not function as intended
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
labels
Jul 14, 2022
Size Change: +204 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
glendaviesnz
approved these changes
Jul 14, 2022
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.
Testd well for me in Editor and Site Editor
packages/block-editor/src/components/border-radius-control/index.js
Outdated
Show resolved
Hide resolved
aaronrobertshaw
force-pushed
the
fix/invalid-css-unit-only-border-radius-styles
branch
from
August 8, 2022 01:19
aac326d
to
3a4b112
Compare
aaronrobertshaw
force-pushed
the
fix/invalid-css-unit-only-border-radius-styles
branch
from
August 15, 2022 09:07
3a4b112
to
87ca582
Compare
aaronrobertshaw
deleted the
fix/invalid-css-unit-only-border-radius-styles
branch
August 15, 2022 09:55
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Type] Bug
An existing feature does not function as intended
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.
Fixes: #42354
Related: #33444
What?
Why?
Cleans up invalid CSS styles and unwarranted block attributes.
How?
BorderRadiusControl
to manage unit selections via internal state so they can be separated from the saved block style attributes.Testing Instructions
radius
npm run test-unit packages/block-editor/src/components/border-radius-control/test/
Screenshots or screencast
Screen.Recording.2022-07-14.at.2.15.54.pm.mp4
Screen.Recording.2022-07-14.at.2.30.02.pm.mp4