diff --git a/packages/@react-spectrum/s2/src/ListView.tsx b/packages/@react-spectrum/s2/src/ListView.tsx index 05cb31186d3..ae593ccd5a4 100644 --- a/packages/@react-spectrum/s2/src/ListView.tsx +++ b/packages/@react-spectrum/s2/src/ListView.tsx @@ -280,9 +280,8 @@ const listitem = style({ - ...focusRing(), + outlineStyle: 'none', boxSizing: 'border-box', - outlineOffset: -2, columnGap: 0, paddingX: 0, paddingY: 8, @@ -320,7 +319,6 @@ const listitem = style({ + ...focusRing(), + outlineOffset: -2, position: 'absolute', zIndex: -1, - top: 0, + top: { + default: 0, + isSelected: '[-1px]', + // Don't overlap focus ring of row above. + isPrevSelected: 0, + isFirstItem: 0 + }, left: 0, right: 0, bottom: { default: 0, - isSelected: { - selectionStyle: { - checkbox: 0, - highlight: { - default: 0, - isNextSelected: '[-1px]' - } - } - } + isSelected: '[-1px]' }, backgroundColor: { default: '--rowBackgroundColor', @@ -440,9 +400,10 @@ const listRowBackground = style