Skip to content

Conversation

@a110605
Copy link
Member

@a110605 a110605 commented Oct 20, 2025

Summary

Fixes #15169

Occurred changes and/or fixed issues

Previous PR changed warning-text color to black to make warning button obvious, but it makes warning banner text not obvious in dark theme.

Remove .warning .banner__content color css
Update -warning-banner-text and --error-banner-text color schema in dark/light theme.

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

Before
Screenshot 2025-10-20 at 3 02 42 PM

After
Screenshot 2025-10-20 at 3 13 55 PM

image

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

@a110605 a110605 added this to the v2.13.0 milestone Oct 20, 2025
@a110605 a110605 requested review from nwmac and rak-phillip October 20, 2025 07:16
@a110605 a110605 self-assigned this Oct 20, 2025
@a110605 a110605 requested a review from houhoucoop October 20, 2025 08:34
@a110605 a110605 force-pushed the fix_warning_banner_content_color branch from 8359ad9 to 9ad30c4 Compare October 21, 2025 06:33
Copy link
Member

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

Instead of removing the css variables, let's ensure that the colors are defined properly instead. After having a discussion with @kwwii, we decided that the text should just be black for the light theme, and white for the dark theme. This should be consistent for info, warning, and error:

BODY, .theme-light {
  --error-banner-text: #{$grey-100};
  --warning-banner-text: #{$grey-100};
}

BODY, .theme-dark {
  --warning-banner-text : #{$grey-0};
  --error-banner-text   : #{$grey-0};
}

@a110605 a110605 requested a review from rak-phillip October 22, 2025 08:29
@a110605 a110605 force-pushed the fix_warning_banner_content_color branch from 9ad30c4 to f439960 Compare October 22, 2025 08:29
@a110605
Copy link
Member Author

a110605 commented Oct 22, 2025

Instead of removing the css variables, let's ensure that the colors are defined properly instead. After having a discussion with @kwwii, we decided that the text should just be black for the light theme, and white for the dark theme. This should be consistent for info, warning, and error:

BODY, .theme-light {
  --error-banner-text: #{$grey-100};
  --warning-banner-text: #{$grey-100};
}

BODY, .theme-dark {
  --warning-banner-text : #{$grey-0};
  --error-banner-text   : #{$grey-0};
}

Thanks for providing the color. Updated.

Error Banner
Screenshot 2025-10-22 at 4 27 38 PM

Screenshot 2025-10-22 at 4 27 34 PM

Copy link
Member

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

LGTM

@a110605 a110605 merged commit bbf3d62 into rancher:master Oct 23, 2025
137 of 146 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update colors for modern theme

2 participants