Skip to content

Commit c99bfc3

Browse files
authored
chore: update hcm focus ring in S2 TreeView highlight selection (adobe#9805)
* fix: update hcm focus ring * update focus ring hcm color
1 parent 14af59b commit c99bfc3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/@react-spectrum/s2/src/TreeView.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,18 +378,21 @@ const treeActionMenu = style({
378378

379379
let treeRowFocusRing = style({
380380
...focusRing(),
381-
outlineOffset: -2,
381+
outlineOffset: {
382+
default: -2,
383+
forcedColors: -3
384+
},
385+
outlineWidth: {
386+
default: 2,
387+
forcedColors: '[3px]'
388+
},
382389
outlineColor: {
383390
default: 'focus-ring',
384391
forcedColors: 'Highlight',
385392
selectionStyle: {
386393
highlight: {
387394
default: 'focus-ring',
388-
forcedColors: 'Highlight',
389-
isSelected: {
390-
default: 'focus-ring',
391-
forcedColors: 'ButtonBorder'
392-
}
395+
forcedColors: 'ButtonBorder'
393396
}
394397
}
395398
},

0 commit comments

Comments
 (0)