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(ui5-avatar): implement accessibility spec #1484

Merged
merged 3 commits into from
Apr 22, 2020
Merged

feat(ui5-avatar): implement accessibility spec #1484

merged 3 commits into from
Apr 22, 2020

Conversation

nnaydenow
Copy link
Contributor

packages/main/src/Avatar.js Outdated Show resolved Hide resolved
packages/main/src/Avatar.js Show resolved Hide resolved
return this.accessibleName;
}

return this.i18nBundle.getText(AVATAR_TOOLTIP) || undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

The || undefined part seems redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If getText function return "" empty aria-label attribute will be set.

Should I remove it?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is ok, otherwise the attribute will be set with value empty string.

Copy link
Contributor

@elenastoyanovaa elenastoyanovaa left a comment

Choose a reason for hiding this comment

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

Approved from ACC side.

@ilhan007 ilhan007 merged commit 501740e into SAP:master Apr 22, 2020
@nnaydenow nnaydenow deleted the avatar-acc branch August 10, 2020 09:14
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.

5 participants