Repository navigation
DataViews: Use border width token for 1px borders and hairlines - #87662
Conversation
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +265 B (0%) Total Size: 8.73 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. allows widgets to be moved between widget areas using the dropdown in the block toolbar in should give the image its context menu while selected @WebKit @Firefox in
|
ciampo
left a comment
There was a problem hiding this comment.
LGTM 🚀
As a follow-up, could we also move the DataViews focus rings that still use --wp-admin-border-width-focus to WPDS? Ideally with the outset-ring__focus() mixin from @wordpress/base-styles, or the --wpds-border-width-focus token where the mixin doesn't fit.
Replace hard-coded 1px border widths and 1px divider lines in DataViews and DataForm styles with --wpds-border-width-xs, which resolves to 1px.
453b807 to
07b561e
Compare
|
Actually, I can look into the focus ring follow-up. |
|
#87691 (wip) |
What?
Replaces hard-coded
1pxborder widths and1pxdivider lines in the DataViews and DataForm styles with the--wpds-border-width-xsdesign token.Why?
We've been moving the DataViews to WPDS design tokens and
@wordpress/uicomponents so this is a step to that direction.How?
--wpds-border-width-xsresolves to1px, so there should be no visual change.border/border-top/border-bottom: 1px solid …in filters, DataForm controls, list and table layouts.1px-wide or1px-tall pseudo-element dividers: the table actions divider, the table's sticky header line and the timeline connector lines in the activity and picker-activity layouts.1pxrow line drawn withbackground-sizein the table layout.Left out on purpose: the
calc( … ± 1px )icon sizes in the activity and picker-activity layouts. They size the timeline icons, not borders.Testing Instructions
trunk.