Skip to content
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

Feat(MWPW-146367):Added accessibility player controls (NON MPC) #3053

Merged
merged 42 commits into from
Dec 4, 2024

Conversation

sharath-kannan
Copy link
Contributor

@sharath-kannan sharath-kannan commented Oct 16, 2024

Copy link
Contributor

aem-code-sync bot commented Oct 16, 2024

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.38%. Comparing base (afe9047) to head (c32e97f).
Report is 5 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #3053      +/-   ##
==========================================
- Coverage   96.39%   96.38%   -0.01%     
==========================================
  Files         245      245              
  Lines       56746    56896     +150     
==========================================
+ Hits        54698    54840     +142     
- Misses       2048     2056       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

@spadmasa spadmasa self-assigned this Oct 17, 2024
Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

I only got through a few files, I'll continue tomorrow.

As discussed on Slack, we may want to update the way in which we disable the play/pause buttons by using the #_ pattern, thus accounting for the video auto block as well.

libs/blocks/aside/aside.css Show resolved Hide resolved
libs/blocks/aside/aside.js Outdated Show resolved Hide resolved
libs/blocks/figure/figure.css Outdated Show resolved Hide resolved
libs/blocks/figure/figure.js Outdated Show resolved Hide resolved
libs/blocks/hero-marquee/hero-marquee.js Outdated Show resolved Hide resolved
libs/blocks/video/video.css Outdated Show resolved Hide resolved
libs/blocks/video/video.css Outdated Show resolved Hide resolved
libs/blocks/video/video.css Show resolved Hide resolved
libs/blocks/video/video.css Outdated Show resolved Hide resolved
libs/blocks/video/video.css Outdated Show resolved Hide resolved
Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

Thanks for looking into all the changes! I have a new round of comments and a potential bug: when focusing the play/pause button, it's being pushed from its original position:

Focus.changes.position.mov

I noticed that in the carousel block, maybe it's not the case everywhere, but it should be investigated.

libs/blocks/hero-marquee/hero-marquee.js Outdated Show resolved Hide resolved
libs/blocks/video/video.css Outdated Show resolved Hide resolved
libs/blocks/video/video.css Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

Approving, since we had a lot of feedback on this one and things are looking a lot better now. We're counting on QEs to isolate any additional issues; if none ar found, we should socialize this again, so it gets the required approvals for it to receive the "Ready for Stage" label.

Comment on lines 233 to 236
slide.querySelectorAll('a,:not(.video-container, .pause-play-wrapper) > video').forEach((focusableElement) => { focusableElement.setAttribute('tabindex', tabIndex); });
});
} else {
activeSlide.querySelectorAll('a').forEach((focusableElement) => { focusableElement.setAttribute('tabindex', 0); });
activeSlide.querySelectorAll('a,:not(.video-container, .pause-play-wrapper) > video').forEach((focusableElement) => { focusableElement.setAttribute('tabindex', 0); });
Copy link
Contributor

Choose a reason for hiding this comment

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

L233 and L236 seem to exceed the 100 character limit, it might be a good idea to move the .forEach on a new line.

Comment on lines 272 to 278
<a class='pause-play-wrapper' role='button' tabindex=${tabIndex} aria-pressed=true video-index=${indexOfVideo}>
<div class='offset-filler ${videoAttrs.includes('autoplay') ? 'is-playing' : ''}'>
<img class='accessibility-control pause-icon' src='${fedRoot}/federal/assets/svgs/accessibility-pause.svg'/>
<img class='accessibility-control play-icon' src='${fedRoot}/federal/assets/svgs/accessibility-play.svg'/>
</div>
</a>
</div>`;
Copy link
Contributor

Choose a reason for hiding this comment

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

This might need an additional indent

@spadmasa spadmasa added verified PR has been E2E tested by a reviewer Ready for Stage labels Nov 30, 2024
@salonijain3
Copy link
Contributor

@spadmasa I got an alert for gnav file changes on this, can you check if there is any impact from this PR?

cc: @sharmrj @bandana147

@spadmasa spadmasa removed verified PR has been E2E tested by a reviewer Ready for Stage labels Dec 2, 2024
@sharath-kannan
Copy link
Contributor Author

sharath-kannan commented Dec 2, 2024

@spadmasa I got an alert for gnav file changes on this, can you check if there is any impact from this PR?

cc: @sharmrj @bandana147

@salonijain3 the gnav files were modified to move a commonly used function out of the gnav module.

@spadmasa
Copy link

spadmasa commented Dec 2, 2024

@spadmasa spadmasa added verified PR has been E2E tested by a reviewer Ready for Stage labels Dec 2, 2024
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Dec 3, 2024

Skipped merging 3053: Feat(MWPW-146367):Added accessibility player controls (NON MPC) due to insufficient approvals. Required: 2 approvals

@spadmasa spadmasa added the high priority Why is this a high priority? Blocker? Critical? Dependency? label Dec 3, 2024
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Dec 4, 2024

Skipped merging 3053: Feat(MWPW-146367):Added accessibility player controls (NON MPC) due to insufficient approvals. Required: 2 approvals

@mokimo mokimo merged commit 6e4138c into adobecom:stage Dec 4, 2024
14 checks passed
@mokimo mokimo mentioned this pull request Dec 4, 2024
rgclayton pushed a commit that referenced this pull request Dec 9, 2024
sharath-kannan added a commit to sharath-kannan/milosh that referenced this pull request Dec 10, 2024
milo-pr-merge bot pushed a commit that referenced this pull request Dec 11, 2024
* Adding video fill variant

* PR feedback, css clean up

* Fixing code conflicts with #3053

---------

Co-authored-by: Ryan Clayton <rclayton@adobe.com>
nishantka pushed a commit to nishantka/milo that referenced this pull request Dec 13, 2024
* Adding video fill variant

* PR feedback, css clean up

* Fixing code conflicts with adobecom#3053

---------

Co-authored-by: Ryan Clayton <rclayton@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Why is this a high priority? Blocker? Critical? Dependency? Ready for Stage verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.