-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react-charting): Heatmap text color based on Contrast Ratio #33659
base: master
Are you sure you want to change the base?
Conversation
🕵 fluentui-web-components-v3 No visual regressions between this PR and main |
📊 Bundle size reportUnchanged fixtures
|
@@ -0,0 +1,7 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual regressions to review in the fluentuiv8 Visual Regression Report
Keytip 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Keytip.Offset.chromium.png | 121 | Changed |
react-charting-AreaChart 3 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-AreaChart.Basic RTL.chromium.png | 841 | Changed |
react-charting-AreaChart.Basic Dark Mode.chromium.png | 847 | Changed |
react-charting-AreaChart.Basic.chromium.png | 847 | Changed |
react-charting-DonutChart 3 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-DonutChart.Basic.chromium.png | 634 | Changed |
react-charting-DonutChart.Basic RTL.chromium.png | 642 | Changed |
react-charting-DonutChart.Basic Dark Mode.chromium.png | 634 | Changed |
react-charting-HeatMapChart 3 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-HeatMapChart.Basic RTL.chromium.png | 1354 | Changed |
react-charting-HeatMapChart.Basic Dark Mode.chromium.png | 1352 | Changed |
react-charting-HeatMapChart.Basic.chromium.png | 1352 | Changed |
react-charting-HorizontalBarChart 6 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-HorizontalBarChart.With Axis Dark Mode.chromium.png | 843 | Changed |
react-charting-HorizontalBarChart.Basic.chromium.png | 929 | Changed |
react-charting-HorizontalBarChart.Basic Dark Mode.chromium.png | 929 | Changed |
react-charting-HorizontalBarChart.Basic RTL.chromium.png | 939 | Changed |
react-charting-HorizontalBarChart.With Axis RTL.chromium.png | 836 | Changed |
react-charting-HorizontalBarChart.With_Axis.chromium.png | 843 | Changed |
react-charting-PieChart 3 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-PieChart.Basic RTL.chromium.png | 478 | Changed |
react-charting-PieChart.Basic Dark Mode.chromium.png | 474 | Changed |
react-charting-PieChart.Basic.chromium.png | 474 | Changed |
react-charting-VerticalBarChart 6 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
react-charting-VerticalBarChart.Basic Secondary Y Axis Dark Mode.chromium.png | 843 | Changed |
react-charting-VerticalBarChart.Basic - Secondary Y Axis.chromium.png | 843 | Changed |
react-charting-VerticalBarChart.Basic Secondary Y Axis RTL.chromium.png | 836 | Changed |
react-charting-VerticalBarChart.Stacked RTL.chromium.png | 836 | Changed |
react-charting-VerticalBarChart.Stacked.chromium.png | 843 | Changed |
react-charting-VerticalBarChart.Stacked Dark Mode.chromium.png | 843 | Changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did so many screenshots change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using different version of d3-color now (as per yarn.lock file). I can see that reason only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems unrelated to my changes. let me take a master pull.
🕵 FluentUIV0 No visual regressions between this PR and main |
@@ -0,0 +1,7 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual regressions to review in the fluentuiv9 Visual Regression Report
Avatar Converged 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Avatar Converged.badgeMask.chromium.png | 5 | Changed |
Drawer 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Drawer.Full Overlay RTL.chromium.png | 1168 | Changed |
Pull request demo site: URL |
Lets start following this naming convention for the PR title. https://www.conventionalcommits.org/en/v1.0.0-beta.2/ |
packages/charts/react-charting/src/components/HeatMapChart/HeatMapChart.base.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/HeatMapChart/HeatMapChart.base.tsx
Outdated
Show resolved
Hide resolved
@@ -1,4 +1,5 @@ | |||
import { create as d3Create, select as d3Select, Selection } from 'd3-selection'; | |||
import { resolveCSSVariables } from '../../utilities/utilities'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont use relative imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this pattern at multiple places. Lets start fixing from here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay. But is it correct to use absolute paths?
New Behavior
Related Issue(s)