Skip to content

Commit

Permalink
Add pointer-events none for slotted svgs in button and anchors to pre…
Browse files Browse the repository at this point in the history
…vent focus rect on click (microsoft#17750)

* add pointer-events none for slotted svgs in buttons and anchors to prevent focus rect on click

* Change files
  • Loading branch information
chrisdholt authored and miroslavstastny committed May 5, 2021
1 parent 76ec930 commit d34d868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "add pointer-events none for slotted svgs in buttons and anchors to prevent focus rect on click",
"packageName": "@fluentui/web-components",
"email": "chhol@microsoft.com",
"dependentChangeType": "patch"
}
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 @@ -107,6 +107,7 @@ export const BaseButtonStyles: ElementStyles = css`
replace when adaptive typography is figured out */ ''
} width: 16px;
height: 16px;
pointer-events: none;
}
.start {
Expand Down

0 comments on commit d34d868

Please sign in to comment.