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

fix(ADA-1514): Incorrect focus order is observed when Related Files button is activated. #74

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

Tzipi-kaltura
Copy link
Contributor

@Tzipi-kaltura Tzipi-kaltura commented Oct 8, 2024

Description of the Changes

Issue:
When open the download plugin with tab key, focus move to the first element in the modal only if the displayFlavors config is enabled. in case of display only captions or attachment, focus move to the body and not not specific element.

Fix:
Add functionality to check if captions/attachment or flavors will be displayed first in the modal, then move the focus according to that and not only according isDefault value (that relevant only to diaplyFlavors and not the rest of the configuration)

Solves ADA-1514

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@Tzipi-kaltura Tzipi-kaltura merged commit f0c4d76 into master Oct 15, 2024
8 checks passed
Tzipi-kaltura added a commit that referenced this pull request Nov 4, 2024
…utton is activated. (#76)

Issue:
when we have more than one attachment/caption the focus move to the last item and not the first

Solution:
shouldFocus is sent as true to downloadItem only if this is the first item in the caption/attachment list and not for all item (and of course also only if this is the first list in the overlay)

improvement of #74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants