-
Notifications
You must be signed in to change notification settings - Fork 4.6k
DataViews grid layout: rounded corners for media #71543
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> Co-authored-by: youknowriad <[email protected]>
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.