Skip to content
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

high contrast bug fixes #33322

Closed
Closed
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
Expand Up @@ -5,6 +5,7 @@ import {
colorNeutralForeground1,
colorNeutralStrokeAccessible,
display,
forcedColorsStylesheetBehavior,
shadow4,
spacingHorizontalL,
spacingHorizontalS,
Expand Down Expand Up @@ -50,17 +51,17 @@ export const styles: ElementStyles = css`
border: 2px;
pointer-events: none;
}
.tooltipline {
.tooltip-line {
padding-inline-start: 8px;
height: 50px;
border-inline-start: 4px solid;
}
.tooltiplegend {
.tooltip-legend-text {
font-size: 13px;
color: theme.semanticColors.bodyText;
text-align: start;
}
.tooltipdata {
.tooltip-data-y {
font-weight: bold;
font-size: 30px;
text-align: start;
Expand Down Expand Up @@ -164,4 +165,22 @@ export const styles: ElementStyles = css`
${typographyBody1StrongStyles}
color: ${colorNeutralForeground1};
}
`;
@media (forced-colors: active) {
.bar-label {
fill: white !important;
}
}
`.withBehaviors(
forcedColorsStylesheetBehavior(css`
.legend-rect,
.tooltip-line,
.triangle {
forced-color-adjust: none;
}
.tooltip-legend-text,
.tooltip-content-y {
forced-color-adjust: auto;
color: rgb(255, 255, 255);
}
`),
);
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export function horizontalbarchartTemplate<T extends HorizontalBarChart>(): Elem
class="tooltip"
style="inset-inline-start: ${x => x.tooltipProps.xPos}px; top: ${x => x.tooltipProps.yPos}px"
>
<div class="tooltipline" style="border-color: ${x => x.tooltipProps.color};">
<div class="tooltiplegend">${x => x.tooltipProps.legend}</div>
<div class="tooltipdata" style="color: ${x => x.tooltipProps.color};">${x => x.tooltipProps.yValue}</div>
<div class="tooltip-line" style="border-color: ${x => x.tooltipProps.color};">
<div class="tooltip-legend-text">${x => x.tooltipProps.legend}</div>
<div class="tooltip-data-y" style="color: ${x => x.tooltipProps.color};">
${x => x.tooltipProps.yValue}
</div>
</div>
</div>
`,
Expand Down
2 changes: 1 addition & 1 deletion packages/fluentui/react-northstar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"clean": "gulp clean:component-info bundle:package:clean",
"lint": "eslint --ext .js,.ts,.tsx .",
"lint:fix": "yarn lint --fix",
"test": "gulp test",
"test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 gulp test",
"test:watch": "gulp test:watch"
},
"sideEffects": false,
Expand Down
Loading