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(ASSETS-6863): Files: Asset information - IPTC tab - Certain ARIA roles must contain particular children #239

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

BogdanMare
Copy link
Contributor

When the "Keywords" region does not contain any input fields, consider removing the role="list" attribute from the element.
As the "Add" button is pressed and the input fields (which contain the expected role="listitem") appear, consider using JavaScript to add role="list" back to the element.
@review @Pareesh @RitwikSrivastava

Description

Handle role list attribute according to the number of items.
When coral-multifield list of items is empty, the role should change.

Related Issue

https://jira.corp.adobe.com/browse/ASSETS-6863

Motivation and Context

Only when the list of items is not empty should have the role list attribute added.

How Has This Been Tested?

By adding and removing items.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@Pareesh
Copy link
Collaborator

Pareesh commented Sep 15, 2022

Hi @BogdanMare ,
create a function for adding and removing role based on number of items.

@Pareesh Pareesh merged commit 9bb6f17 into adobe:master Sep 15, 2022
github-actions bot pushed a commit that referenced this pull request Sep 15, 2022
## [4.15.1](v4.15.0...v4.15.1) (2022-09-15)

### Bug Fixes

* **ASSETS-6863:** Files: Asset information - IPTC tab - Certain ARIA roles must contain particular children ([#239](#239)) ([9bb6f17](9bb6f17))
@github-actions
Copy link

🎉 This PR is included in version 4.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants