Skip to content

Commit

Permalink
Fix tooltip arrow's high contrast border in RTL (#21354)
Browse files Browse the repository at this point in the history
Fix tooltip and popover's high contrast border in RTL
  • Loading branch information
behowell authored Jan 20, 2022
1 parent 34e02e2 commit 2e34c02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Fix tooltip arrow's high contrast border in RTL",
"packageName": "@fluentui/react-positioning",
"email": "behowell@microsoft.com",
"dependentChangeType": "patch"
}
6 changes: 5 additions & 1 deletion packages/react-positioning/src/createArrowStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export function createArrowStyles(options: CreateArrowStylesOptions): MakeStyles
width: 'inherit',
height: 'inherit',
backgroundColor: 'inherit',
...shorthands.borderRight(borderWidth, borderStyle, borderColor),
...shorthands.borderRight(
`${borderWidth} /* @noflip */`,
`${borderStyle} /* @noflip */`,
`${borderColor} /* @noflip */`,
),
...shorthands.borderBottom(borderWidth, borderStyle, borderColor),
borderBottomRightRadius: tokens.borderRadiusSmall,
transform: 'rotate(var(--angle)) translate(0, 50%) rotate(45deg)',
Expand Down

0 comments on commit 2e34c02

Please sign in to comment.