-
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: make Actions
styles the same as any other column header
#56654
Conversation
Actions
column header's styles the same as othersActions
styles the same as any other column header
@@ -34,9 +34,15 @@ | |||
} | |||
th { | |||
text-align: left; | |||
font-weight: normal; | |||
padding: 0 $grid-unit-20 $grid-unit-20; |
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.
padding
was not being used, as far as I could tell – so I removed it.
Size Change: -11.4 kB (-1%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
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.
Visually solid, but left a question about making the rules generic. I'll defer to Jay if he chimes in.
* This makes the Actions column header to use the same styles as the other ones. | ||
* The other column headers use the .components-button styles. | ||
*/ | ||
&[data-field-id="actions"] { |
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.
Should this just be [data-field-id]
, or even something higher up? Mainly it seems like all items in this row should always be styled the same, even future additions.
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.
Yeah, good point. I think we can just target the th
. The mismatch Joen describes can be observed by adding a field that is not hideable or sortable.
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.
Good one, thanks! Pushed 43190dc
I have a small concern that there's no indication about which cells are interactive and which are not, they all look identical. This issue could become more pronounced when we add inline editing down the road. Probably fine for now, but also could be a detail to revisit later. |
Part of #55083
What?
Makes the styles for the
Actions
column header be the same as other column headers.Testing Instructions