Skip to content

Comments

fix: use correct CSS variable to control bar chart background color#27

Merged
troinine merged 1 commit intomainfrom
bugfix/incorrect-chart-bar-color
Dec 18, 2025
Merged

fix: use correct CSS variable to control bar chart background color#27
troinine merged 1 commit intomainfrom
bugfix/incorrect-chart-bar-color

Conversation

@troinine
Copy link
Owner

No description provided.

@troinine troinine added the ignore-for-release Ignored from release notes label Dec 18, 2025
@troinine troinine requested a review from Copilot December 18, 2025 16:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the wrong CSS variable name was used to control the bar chart background color for precipitation. The code was incorrectly referencing --wfc-chart-precipitation-bar-color, but the actual CSS variable defined in the stylesheet is --wfc-precipitation-bar-color.

  • Fixed the CSS variable reference from --wfc-chart-precipitation-bar-color to --wfc-precipitation-bar-color
  • Added comprehensive test coverage to verify all CSS variables are correctly applied to the chart configuration

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/wfc-forecast-chart.ts Corrected the CSS variable name from --wfc-chart-precipitation-bar-color to --wfc-precipitation-bar-color to match the actual variable defined in the stylesheet
test/weather-forecast-chart.test.ts Added a new test case to verify that all CSS custom properties are properly respected and applied to chart elements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@troinine troinine merged commit 16bd9d4 into main Dec 18, 2025
10 checks passed
@troinine troinine deleted the bugfix/incorrect-chart-bar-color branch December 18, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release Ignored from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant