Skip to content

Commit

Permalink
fix: correct focus visible outline on accent button and anchor styles (
Browse files Browse the repository at this point in the history
…#16833)

* correct focus vis box shadow

* Change files

Co-authored-by: Seth Donohue <sethdonohue@Admins-MBP.guest.corp.microsoft.com>
  • Loading branch information
SethDonohue and Seth Donohue authored Feb 5, 2021
1 parent 8c1d2ce commit 7e1723e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "correct focus visible outline on accent button and anchor styles",
"packageName": "@fluentui/web-components",
"email": "sethdonohue@Admins-MBP.guest.corp.microsoft.com",
"dependentChangeType": "patch",
"date": "2021-02-04T23:05:06.344Z"
}
2 changes: 1 addition & 1 deletion packages/web-components/src/styles/patterns/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const AccentButtonStyles = css`
}
:host(.accent) .control:${focusVisible} {
box-shadow: 0 0 0 calc(var(--focus-outline-width) * 1px) inset ${neutralFocusInnerAccentBehavior.var};
box-shadow: 0 0 0 calc(var(--focus-outline-width) * 1px) inset ${neutralFocusInnerAccentBehavior.var}, 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) ${neutralFocusBehavior.var}
}
:host(.accent.disabled) {
Expand Down

0 comments on commit 7e1723e

Please sign in to comment.