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(SITES-3057 Accessibility) - Decorative image has non-empty alt attribute. #337

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

StoianLucian
Copy link
Contributor

Ticket: SITES-3057

@StoianLucian StoianLucian requested a review from Pareesh February 22, 2024 09:59
@StoianLucian StoianLucian changed the title SITES-3057 Accessibility - Decorative image has non-empty alt attribute. fix(SITES-3057 Accessibility) - Decorative image has non-empty alt attribute. Mar 18, 2024
@StoianLucian
Copy link
Contributor Author

failed tests not related to the change
Screenshot 2024-11-22 at 11 25 34

@@ -73,6 +73,12 @@ const CardProperty = Decorator(class extends BaseComponent(HTMLElement) {

// removes the icon element from the DOM since there is no valid icon. this causes the content to have the
// correct styling

if(this._elements.icon.icon === 'globeRemove') {
this._elements.icon.removeAttribute('aria-label');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please avoid check related to single icon. The code should be generic and not specified to single icom

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Pareesh the ticket required to remove the aria label from the specific icon, will check with manager, thank you for the comment

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