Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Fix value font-weight inside heatmap chart",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { FontWeights } from '@fluentui/react/lib/Styling';
import { IHeatMapChartStyleProps, IHeatMapChartStyles } from './HeatMapChart.types';

export const getHeatMapChartStyles = (props: IHeatMapChartStyleProps): IHeatMapChartStyles => {
Expand All @@ -9,6 +10,7 @@ export const getHeatMapChartStyles = (props: IHeatMapChartStyleProps): IHeatMapC
{
pointerEvents: 'none',
fill: theme.palette.white,
fontWeight: FontWeights.semibold,
},
],
subComponentStyles: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ exports[`HeatMapChart snapShot testing renders HeatMapChart correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -153,7 +153,7 @@ exports[`HeatMapChart snapShot testing renders HeatMapChart correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -447,7 +447,7 @@ exports[`HeatMapChart snapShot testing renders corretly even when data is not pr
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -480,7 +480,7 @@ exports[`HeatMapChart snapShot testing renders corretly even when data is not pr
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -864,7 +864,7 @@ exports[`HeatMapChart snapShot testing renders hideLegend correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -897,7 +897,7 @@ exports[`HeatMapChart snapShot testing renders hideLegend correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -1032,7 +1032,7 @@ exports[`HeatMapChart snapShot testing renders hideTooltip correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -1065,7 +1065,7 @@ exports[`HeatMapChart snapShot testing renders hideTooltip correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -1359,7 +1359,7 @@ exports[`HeatMapChart snapShot testing renders yAxisTickFormat correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down Expand Up @@ -1392,7 +1392,7 @@ exports[`HeatMapChart snapShot testing renders yAxisTickFormat correctly 1`] = `
fill: #ffffff;
font-family: 'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 400;
font-weight: 600;
pointer-events: none;
}
dominantBaseline="middle"
Expand Down