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
Improve how it looks
  • Loading branch information
oandregal committed Feb 29, 2024
commit 33e5b477c0eb4ca66d68da09f37ec99f7fc41847
3 changes: 2 additions & 1 deletion packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@
}
&:focus {
color: var(--wp-admin-theme-color--rgb);
Copy link
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
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-admin-theme-color);
box-shadow: inset 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;
}
}

Expand Down