DataViews grid layout: rounded corners for media#71543
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +14 B (0%) Total Size: 1.93 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in e7b1347. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17548494932
|
| aspect-ratio: 1/1; | ||
| background-color: $white; | ||
| border-radius: $radius-medium; | ||
| overflow: hidden; |
There was a problem hiding this comment.
Are there any "media" fields where we want scrollbars? Just asking to ensure we avoid regressions. Thinks like template previews could potentially fall in this category but not sure what the expectation there is.
There was a problem hiding this comment.
I think it'd be fine if we want to do that (we don't in the current templates):
Screen.Recording.2025-09-08.at.16.28.44.mov
Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
What?
This PR makes sure the media field has rounded corners.
Why?
That's how we want it to be, like list and table layouts.
How?
By making sure the content doesn't overflow the container.
Testing Instructions
Visit the storybook (
npm run storybook:dev) and set the layout to grid. Verify the images have rounded corners.