Skip to content

Commit

Permalink
Improve contrast of status label in dark mode
Browse files Browse the repository at this point in the history
Replace the hardcoded `gray-70` with the correct `text-02` token
so it switches to `gray-30` as expected in dark mode, maintaining
the minimum required contrast ratio.

This style is used for waiting, pending, and unknown status in
the TaskRun and step details header.
  • Loading branch information
AlanGreene authored and tekton-robot committed Sep 6, 2021
1 parent 72047c2 commit fec86bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ header.tkn--step-details-header {

&[data-status] {
.tkn--status-label {
color: $gray-70;
color: $text-02;
}
}
&[data-status='running'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ header.tkn--pipeline-run-header {
// catch all for unknown states
&:not([data-succeeded]) {
.tkn--status-label {
color: $gray-70;
color: $text-02;
}
}

Expand Down

0 comments on commit fec86bd

Please sign in to comment.