-
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
Resolve improperly applied border radius when the core/social-link block is interacted with #49766
Conversation
Size Change: +87 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Flaky tests detected in bab2162. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4680677687
|
Thanks for the PR! This is a tricky one, though: it appears that the radius here is applied whenever a block is multi selected or highlighted (the latter is the case here), and I think I may be the offending actor causing this regression, as I wrote this code: But as you can see, this code also causes the issue on the Site Logo when rounded: Especially as we roll out the radius tool to more blocks, we might need to revisit that. This seems to need fixing at the block UI level, rather than the block itself. What do you think? I'll make a note to look at this when I get a moment, we might need to revert the part of my past refactor that changed this from being a pseudo element to being on the block itself. Additionally I think there's an implementation aspect to social links that was fundamentally wrong. It uses the Button component for each social link, which means we have to unset and override every inherited button style: That should probably have been a HTML |
Closed in favor of #49864 |
What?
Closes #48492.
Why?
Fixing the visual distortion that occurs when a core/social-link is moved.
How?
Tiny CSS fix.
Testing Instructions
Screenshots or screencast
Before:
CleanShot.2023-04-12.at.12.02.35.mp4
After:
CleanShot.2023-04-12.at.12.01.31.mp4