-
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
DataViews: Fix react warning error in list layout #60101
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: -12 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
Flaky tests detected in 35bbb72. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8385662061
|
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.
Thanks :)
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Related to #59637
What?
This PR changes the field's HTML element from
p
todiv
to prevent browser warning errors in the dataview list layouts.Why?
Since only flow content is allowed as the content of the
p
element, it is not possible to include adiv
element. I don't think it's possible to wrap this field in ap
element because any child could be rendered.How?
I changed the
p
element to adiv
element and removed the margin that was no longer needed as a result. As the screenshot below shows, this PR changes the font size from 13px to 12px. I think this is the expected font size behavior in the list view, what do you think? I'm also a little concerned that there might be accessibility issues.Testing Instructions
Screenshots or screencast
Before
The author field has a font size of 13px, which is a default paragraph style by WP Core.
After
The author field has a font size of 12px defined by the data view component.