Draft: Remove Pajamas-incompatible table header styles
What does this MR do and why?
This change removes table styles that are not compliant with Pajamas and that currently must be overridden by most of our new tables.
It also removes two classes that override these incorrect styles in favor of using the original correct styles.
See more: https://design.gitlab.com/components/table#examples
Risks
Two factors reduce regressions risks:
- The classes changed do not impact layout, only the color palette
- Also, the color is removed, so there is little risk of wrong contrast.
- HAML table headers, are easily searchable
%th
, so tables affected can be checked.- I could not find any cases where the text color is changed, so there's little risk of causing "invisible" text
Why this change?
#345385 (closed) prompted me to take a look at which classes are required to create Pajamas compliant tables, and I found that we have conflicting styles. #346921 (closed) is an effort to remove some of them, but it is by no means extended to all styles.
Possible follow-ups
-
.thead-white
was used at some point to override these styles. - Some
DEFAULT_TH_CLASSES
could be removed after this change (gl-bg-transparent! gl-border-b-solid! gl-border-b-gray-200! gl-border-b-1!
). -
.ci-variable-table
styles forthead
andth
can be removed.
Screenshots or screen recordings
Repository page
Example URL: http://gdk.test:3000/h5bp/html5-boilerplate
before | after |
---|---|
![]() |
![]() |
Markdown table (in an issue)
Example URL: http://gdk.test:3000/h5bp/html5-boilerplate/-/issues/33 (please add a markdown table)
before | after |
---|---|
![]() |
![]() |
Abuse reports
http://gdk.test:3000/admin/abuse_reports
before | after |
---|---|
![]() |
![]() |
![]() |
![]() |
Admin > Applications
http://gdk.test:3000/admin/applications
before | after |
---|---|
![]() |
![]() |
CI/CD Settings > Variables
http://gdk.test:3000/h5bp/html5-boilerplate/-/settings/ci_cd
Note: No obvious difference, as the styles are overridden by .ci-variable-table
.
before | after |
---|---|
![]() |
![]() |
... More examples to come.
How to set up and validate locally
- Visit one of the many tables in our UI, as in the examples provided above
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #346921 (closed)