Skip to content

Removed hidden for accessible calendar #2642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 20, 2025

Conversation

nitzanyiz
Copy link
Contributor

@nitzanyiz nitzanyiz commented Apr 16, 2025

We can (and should probably) hf this.

@nitzanyiz nitzanyiz requested a review from M-i-k-e-l April 16, 2025 15:54
@nitzanyiz nitzanyiz assigned M-i-k-e-l and Inbal-Tish and unassigned M-i-k-e-l Apr 16, 2025
@nitzanyiz nitzanyiz requested review from Inbal-Tish and removed request for M-i-k-e-l April 16, 2025 17:09
@@ -269,8 +269,8 @@ const ExpandableCalendar = forwardRef<ExpandableCalendarRef, ExpandableCalendarP
}, [isOpen, headerHeight]);

const containerStyle = useMemo(() => {
return [allowShadow && style.current.containerShadow, propsStyle, headerHeight === 0 && style.current.hidden, {overflow: 'hidden'} as const];
}, [allowShadow, propsStyle, headerHeight]);
return [allowShadow && style.current.containerShadow, propsStyle, headerHeight === 0 && !screenReaderEnabled && style.current.hidden, {overflow: 'hidden'} as const];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer connecting the accessibility calendar to the onLayout then adding this patch

return [allowShadow && style.current.containerShadow, propsStyle, headerHeight === 0 && style.current.hidden, {overflow: 'hidden'} as const];
}, [allowShadow, propsStyle, headerHeight]);
return [allowShadow && style.current.containerShadow, propsStyle, headerHeight === 0 && style.current.hidden, {overflow: 'hidden'} as const];
}, [allowShadow, propsStyle, headerHeight, screenReaderEnabled]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot the dependency here

@Inbal-Tish Inbal-Tish assigned nitzanyiz and unassigned Inbal-Tish Apr 20, 2025
@Inbal-Tish Inbal-Tish merged commit 33c8e02 into master Apr 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants