Skip to content

Commit

Permalink
fix(TagPicker): focus outline for TagItem remove button now meets req…
Browse files Browse the repository at this point in the history
…uired contrast ratio (#24126)

* fix: focus border now meets minimum contrast ratio

* chore: update snapshots

* Change File

* nit: update change file

* Update Change File
  • Loading branch information
TristanWatanabe authored Jul 29, 2022
1 parent 51b7a53 commit 50b0852
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix(TagPicker): focus outline for TagItem remove button now meets required contrast ratio.",
"packageName": "@fluentui/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function getStyles(props: ITagItemStyleProps): ITagItemStyles {
],
close: [
classNames.close,
getFocusStyle(theme, { borderColor: 'transparent', inset: 1, outlineColor: palette.white }),
{
color: palette.neutralSecondary,
width: 30,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ exports[`TagItem accepts title override 1`] = `
bottom: 2px;
content: "";
left: 2px;
outline: 1px solid #605e5c;
outline: 1px solid #ffffff;
position: absolute;
right: 2px;
top: 2px;
Expand Down Expand Up @@ -367,7 +367,7 @@ exports[`TagItem defaults title to item name for non string children 1`] = `
bottom: 2px;
content: "";
left: 2px;
outline: 1px solid #605e5c;
outline: 1px solid #ffffff;
position: absolute;
right: 2px;
top: 2px;
Expand Down Expand Up @@ -592,7 +592,7 @@ exports[`TagItem renders correctly 1`] = `
bottom: 2px;
content: "";
left: 2px;
outline: 1px solid #605e5c;
outline: 1px solid #ffffff;
position: absolute;
right: 2px;
top: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ exports[`TagPicker renders correctly 1`] = `
bottom: 2px;
content: "";
left: 2px;
outline: 1px solid #605e5c;
outline: 1px solid #ffffff;
position: absolute;
right: 2px;
top: 2px;
Expand Down Expand Up @@ -588,7 +588,7 @@ exports[`TagPicker renders picker with selected item correctly 1`] = `
bottom: 2px;
content: "";
left: 2px;
outline: 1px solid #605e5c;
outline: 1px solid #ffffff;
position: absolute;
right: 2px;
top: 2px;
Expand Down

0 comments on commit 50b0852

Please sign in to comment.