Skip to content

Commit

Permalink
Fixes content shifting when anchor has focus due to 2px bottom border (
Browse files Browse the repository at this point in the history
…#16538)

* Fixes content shifting when anchor has focus due to 2px bottom border

* Change files
  • Loading branch information
robarbms authored Jan 19, 2021
1 parent dadc7e0 commit 809c403
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Fixes content shifting when anchor has focus due to 2px bottom border",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2021-01-19T20:33:31.709Z"
}
1 change: 1 addition & 0 deletions packages/web-components/src/styles/patterns/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export const HypertextStyles = css`
}
:host(.hypertext) .control:${focusVisible} {
border-bottom: calc(var(--focus-outline-width) * 1px) solid ${neutralFocusBehavior.var};
margin-bottom: calc(calc(var(--outline-width) - var(--focus-outline-width)) * 1px);
}
`.withBehaviors(
accentForegroundRestBehavior,
Expand Down

0 comments on commit 809c403

Please sign in to comment.