Skip to content

This PR fixes ADA screen reader issues for days outside the current month in the calendar.#885

Open
queendevelopers wants to merge 1 commit intoaleksanderwozniak:masterfrom
queendevelopers:accessibility-voice-over-fix
Open

This PR fixes ADA screen reader issues for days outside the current month in the calendar.#885
queendevelopers wants to merge 1 commit intoaleksanderwozniak:masterfrom
queendevelopers:accessibility-voice-over-fix

Conversation

@queendevelopers
Copy link

Previously, the screen reader would announce "Text" on iOS for outside days when visibility is set to false, and on Android, users were able to tap the blank cells. This PR resolves these issues by returning a Container widget at the earliest possible stage. As a result, no GestureDetector is created, and the cells are not tappable. This ensures a better user experience and ADA compliance. Thank you.

final isOutside = day.month != focusedMonth.month;

if (isOutside && _shouldBlockOutsideDays) {
return Container();

Choose a reason for hiding this comment

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

suggestion : use SizedBox.shrink() instead of Container();

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.

2 participants