From 971162c914d967b241c07e36b57600b30aa73dc2 Mon Sep 17 00:00:00 2001 From: Robert Snow Date: Tue, 3 Mar 2026 14:39:19 -0600 Subject: [PATCH 1/2] fix: S2 ListView polish styles (#9717) * fix: S2 ListBox styles for scrollbars * remove corner radius for non quiet * fix: ListView item size and borders (#9723) * always round first and last items * fix focus ring * force rounded corners when focused --------- Co-authored-by: Devon Govett --- packages/@react-spectrum/s2/src/ListView.tsx | 167 +++++++++---------- 1 file changed, 79 insertions(+), 88 deletions(-) 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 Date: Tue, 3 Mar 2026 12:48:06 -0800 Subject: [PATCH 2/2] chore: bump macro plugin version for Stackblitz (#9730) --- packages/dev/s2-docs/src/StackBlitz.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev/s2-docs/src/StackBlitz.tsx b/packages/dev/s2-docs/src/StackBlitz.tsx index 7383e95fc65..f454ac3e4b9 100644 --- a/packages/dev/s2-docs/src/StackBlitz.tsx +++ b/packages/dev/s2-docs/src/StackBlitz.tsx @@ -80,7 +80,7 @@ function getFiles( 'tailwindcss-animate': '^1' } : {}), ...(type === 's2' ? { - 'unplugin-parcel-macros': '^0.1.2-alpha.1' + 'unplugin-parcel-macros': '^0.2.0' } : {}) } }, null, 2) + '\n',