Skip to content

feat(ui5-shellbar): implement accessibility spec #1553

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

Merged
merged 5 commits into from
May 4, 2020
Merged

feat(ui5-shellbar): implement accessibility spec #1553

merged 5 commits into from
May 4, 2020

Conversation

nnaydenow
Copy link
Contributor

@nnaydenow nnaydenow commented Apr 27, 2020

Implemented accessibility spec of the ShellBar. In addition some minor issues are fixed:

  • Now, primary-title is displayed in menu button when logo is not provided.
  • Now, empty image tags are not rendered when src is not provided.

#1289


#XACT: ARIA announcement for the logo button
SHELLBAR_LABEL = Logo
Copy link
Contributor

Choose a reason for hiding this comment

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

Why label and then logo. The two texts seem the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot to change the value of parameter. It should be Shell Bar and it will be used as value for aria-label attribute of the Shell Bar,

}

get menuBtnHasPopup() {
return this.hasMenuItems ? true : undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

"true" seems more appropriate, but if it works this way it's ok

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will be cast to string in when it is used in hbs

@nnaydenow nnaydenow requested a review from vladitasev April 29, 2020 12:32
@vladitasev vladitasev merged commit 3b7b439 into SAP:master May 4, 2020
@nnaydenow nnaydenow deleted the shellbar-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.

3 participants