forked from jwplayer/ott-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Working branch / sprint 3 #137
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Melissa Hart <[email protected]>
Co-authored-by: Mike van Veenhuijzen <[email protected]>
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 22, 2024 14:43
— with
GitHub Actions
Inactive
MelissaDTH
temporarily deployed
to
Deployment Previews
February 23, 2024 13:41
— with
GitHub Actions
Inactive
langemike
temporarily deployed
to
Deployment Previews
February 23, 2024 14:01
— with
GitHub Actions
Inactive
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 23, 2024 14:41
— with
GitHub Actions
Inactive
ChristiaanScheermeijer
force-pushed
the
feat/sprint-3
branch
from
February 23, 2024 14:41
608a240
to
46c3eea
Compare
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 23, 2024 14:41
— with
GitHub Actions
Inactive
MelissaDTH
temporarily deployed
to
Deployment Previews
February 23, 2024 15:07
— with
GitHub Actions
Inactive
MelissaDTH
temporarily deployed
to
Deployment Previews
February 26, 2024 14:51
— with
GitHub Actions
Inactive
langemike
temporarily deployed
to
Deployment Previews
February 28, 2024 11:31
— with
GitHub Actions
Inactive
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 28, 2024 14:28
— with
GitHub Actions
Inactive
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 28, 2024 14:29
— with
GitHub Actions
Inactive
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 28, 2024 14:29
— with
GitHub Actions
Inactive
MelissaDTH
temporarily deployed
to
Deployment Previews
February 28, 2024 14:51
— with
GitHub Actions
Inactive
royschut
temporarily deployed
to
Deployment Previews
February 28, 2024 15:20
— with
GitHub Actions
Inactive
MelissaDTH
temporarily deployed
to
Deployment Previews
February 28, 2024 15:22
— with
GitHub Actions
Inactive
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 28, 2024 15:38
— with
GitHub Actions
Inactive
Co-authored-by: Mike van Veenhuijzen <[email protected]>
Co-authored-by: Mike van Veenhuijzen <[email protected]>
refactor(tests): update snapshots
ChristiaanScheermeijer
force-pushed
the
feat/sprint-3
branch
from
February 29, 2024 15:27
04134a2
to
6e2ba61
Compare
ChristiaanScheermeijer
temporarily deployed
to
Deployment Previews
February 29, 2024 15:27
— with
GitHub Actions
Inactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The working branch of this sprint. Let's collect the release notes here for the PR to the open-source repository.
Changes
Note Mike: I undoubled the commits and removed unclear commits (e.g. "minor fixes").
Most notable changes
Form validation improvements for screen readers
We revamped the form validation by a lot. Most notably, we now announce form validation errors for screen reader users (while not presenting them visually), and we have made every submit button always enabled. This last one is a requirement from an a11y standpoint. For a full overview of improvements, see: #107
Improved modals for accessibility
Even though we recently introduced and improved the use of ARIA modals and dialogs. We improved it even further. The most notable change is that the Cinema component (video player) is now wrapped in a Modal component. This has certain benefits:
inert
, programmatically setting and resetting the focus consistently and listening to the Escape key to close)The Cinema component uses a grow/shrink animation instead of a fade in/out as an extra benefit.
We also improved the initial focus and restored the focus into and from the modal. Some edge cases were on some screen readers (iOS and Android).
Enhanced user menu & profile menu for accessibility
The user and profile menu contained a heading and horizontal rule within the
<li>
elements. This caused the screen reader to announce the amount of list items incorrectly. Also, the HTML structure needs to be corrected.Because the Usermenu was previously merely used as a pass-through component, passing along a lot of props from
<UserMenu />
to<ProfileMenu />
, it felt logical to split them into separate components.We also applied some other ARIA attributes such as
role="button"
to MenuButtons (actions instead of links) andaria-current="true"
to the active elements (eg. currently selected profile).Shelf optimised for screen readers
We optimized navigation through the shelves for screen reader users. We looked at other examples online and applied the best practices. We also added a page indicator for screen readers. It announces the current state of the carrousel as pages. It gets read when you use the chevron buttons.
We also increased the hit area of the chevron (next/prev) buttons according to the WCAG specs.
Small accessibility improvements
These are small but could be of particular interest:
Offer refactor
We've moved most of the logics behind the Choose Offer step from the UI to the CheckoutController, using a similar approach as we recently did for the Registration and Checkout steps. This should make the UI more simple and make the useOffer hook reusable between containers and potential other platforms.
We also fixed a bug where after a PayPal payment the incorrect offer was checked for entitlement, and raised the delay in useCheckAccess to compensate for a delay in the Cleeng backend that results into an out-of-sync UI after buying a subscription.
Related WCAG 2.1 (AA) requirements