Skip to content

Commit c7263fc

Browse files
LFDanLudevongovett
andauthored
fix: make sure tap highlight doesn't appear in S2 Calendar on iOS (#8601)
* fix: make sure tap highlight doesnt appear in Calendar on iOS * Add press state --------- Co-authored-by: Devon Govett <[email protected]>
1 parent 87d2d7e commit c7263fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ const calendarStyles = style({
7070
display: 'flex',
7171
flexDirection: 'column',
7272
gap: 24,
73-
width: 'fit'
73+
width: 'fit',
74+
disableTapHighlight: true
7475
}, getAllowedOverrides());
7576

7677
const headerStyles = style({
@@ -173,6 +174,7 @@ const cellInnerStyles = style<CalendarCellRenderProps & {selectionMode: 'single'
173174
backgroundColor: {
174175
default: 'transparent',
175176
isHovered: 'gray-100',
177+
isPressed: 'gray-100',
176178
isDisabled: 'transparent',
177179
isToday: {
178180
default: baseColor('gray-300'),

0 commit comments

Comments
 (0)