-
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
List layout: update broken styles #64837
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. |
927b167
to
d2a3477
Compare
@jameskoster I was looking at the media field in the list view and wanted to gather your thoughts on hiding the media field if it is not provided? I see two use cases:
Do you think we could offer hiding the media field in the 2nd scenario? To be honest, I have doubts myself given that it acts as a sort of "visual anchor", but want to double-check. |
Size Change: +46 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
@@ -1,3 +1,7 @@ | |||
ul.dataviews-view-list { | |||
list-style-type: none; |
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 presume we don't see the list-style-type our dataviews implementation (pages, patterns, templates) because there's a reset somewhere (the block library one?). Thought we should have this for consumers without having to depend on a different reset.
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.
Why not add it below in the existing selector?
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.
Not very opinionated. My thinking was that ul.dataviews-view-list
targets the UL element so it's more intentional.
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.
Left a small comment about the placement of the style, but this looks good. Thank you!
Co-authored-by: oandregal <[email protected]> Co-authored-by: ntsekouras <[email protected]>
Part of #55083
What?
Update list layout styles:
Why?
So they don't look broken and consumers of this package have a better devexp.
How?
Testing Instructions
npm install && npm run storybook:dev
.