Skip to content

Make crosses on info banners visible in dark mode#4307

Open
Sseik wants to merge 1 commit into
fullstack-hy2020:sourcefrom
Sseik:fix/info-banners
Open

Make crosses on info banners visible in dark mode#4307
Sseik wants to merge 1 commit into
fullstack-hy2020:sourcefrom
Sseik:fix/info-banners

Conversation

@Sseik

@Sseik Sseik commented Jul 22, 2026

Copy link
Copy Markdown

Crosses on info banners were turning white in the dark mode, which made them barely visible on the light background, so I changed the buttonStyle to always use the color it uses in the light mode. Also, I had to create an empty .cache directory in the root before I could start the app, you might want to add it to the CONTRIBUTING.md

Copilot AI review requested due to automatic review settings July 22, 2026 09:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request improves the visibility of the close x on InfoBanner components when the site is in dark mode, where the banner background remains light.

Changes:

  • Updated the inline close button text color in four InfoBanner components to a fixed dark color value.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/components/InfoBanner.js Sets a fixed close button color to keep the x visible in dark mode.
src/components/InfoBanner2.js Sets a fixed close button color to keep the x visible in dark mode.
src/components/InfoBanner3.js Sets a fixed close button color to keep the x visible in dark mode.
src/components/InfoBanner4.js Sets a fixed close button color to keep the x visible in dark mode.

backgroundColor: 'transparent',
border: 'none',
color: 'var(--color-text)',
color: '#33332D',
backgroundColor: 'transparent',
border: 'none',
color: 'var(--color-text)',
color: '#33332D',
backgroundColor: 'transparent',
border: 'none',
color: 'var(--color-text)',
color: '#33332D',
backgroundColor: 'transparent',
border: 'none',
color: 'var(--color-text)',
color: '#33332D',
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.

2 participants