Skip to content

MOBILE-4595: WCAG 2.1 AA accessibility accreditation for version 4.5#4291

Merged
dpalou merged 44 commits intomoodlehq:mainfrom
albertgasset:MOBILE-4595
Jan 22, 2025
Merged

MOBILE-4595: WCAG 2.1 AA accessibility accreditation for version 4.5#4291
dpalou merged 44 commits intomoodlehq:mainfrom
albertgasset:MOBILE-4595

Conversation

@albertgasset
Copy link
Contributor

No description provided.

@dpalou dpalou self-requested a review January 21, 2025 08:42
A bug in Ionic prevents focusings buttons inside ion-input components:
it sets the focus to the input element when any element inside the
component is focused.
The behaviour is now consistent with clicks triggered by keyboard.
Screen readers do not support having semantic elements inside buttons.
Now, the button to access a course includes only the course name, rather
than the entire content of the card. The card remains fully clickable,
with no visual changes.

Additionally, the semantic order of elements has been changed so that
the menu button is traversed after other content in the card.
Screen readers do not support having semantic elements inside buttons.
Now, the button to access a module includes only the title, rather than
the entire content of the card. The card remains fully clickable,
with no visual changes.
Focus trap does not work correctly in Ionic when the modal contains
hidden focusable elements, such as the back button.
Screen readers do not support having semantic elements inside buttons.
Now, the button to access a section includes only the section name,
rather than the entire content of the item. The item remains fully
clickable, with no visual changes.
The resize handle is confusing because the course index modal cannot
be resized, only closed.
Screen readers do not support having semantic elements inside buttons.
Now, the button to dowload a file includes only the file name,
rather than the entire content of the item. The item remains fully
clickable, with no visual changes.
Screen readers do not support having semantic elements inside buttons.
Now, the button to open forum discussions includes only the subject,
rather than the entire content of the item. The item remains fully
clickable, with no visual changes.
The button label was stuck at "Downloading" after the download finished
or was cancelled.
Display a blue outline on focused buttons instead of changing the
background color, which caused color contrast issues.
CSS variables  `--highlight-color-valid` and `--highlight-color-invalid`
has been removed from item component in Ionic 8.
The behaviour of ion-radio and ion-checkbox elements with links is
wrong: they can be clicked but the focus and the ripple effect are not
displayed. It can only be fixed by patching Ionic.
We cannot use ion-accordion because the header is always a button and
screen readers do not support having semantic elements inside buttons.
@dpalou dpalou merged commit fba73ec into moodlehq:main Jan 22, 2025
45 checks passed
ali205412 pushed a commit to ali205412/moodleapp that referenced this pull request Jan 26, 2026
MOBILE-4595: WCAG 2.1 AA accessibility accreditation for version 4.5
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