Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small fix.
  • Loading branch information
jasmussen authored and oandregal committed Feb 29, 2024
commit af0f3323ae9463c54bca5d01d182aada27092145
3 changes: 1 addition & 2 deletions packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,14 @@
overflow: hidden;
display: block;
width: 100%;
margin: 0 var(--wp-admin-border-width-focus);

&:hover {
color: $gray-900;
}
&:focus {
color: var(--wp-admin-theme-color--rgb);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced this is the right approach/color combination.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the fix, I wonder how 3rd parties can provide their own theming. We have a mix of approaches:

  • in some places, dataviews uses the @wordpress/component variables and fallback to wp-admin theme.
  • in some other, dataviews uses the wp-admin theme custom properties directly.

box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
border-radius: $grid-unit-05;
border-radius: $radius-block-ui;
}
}

Expand Down