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-panel): support aria-label and aria-labelledby #1910

Merged
merged 4 commits into from
Jul 9, 2020
Merged

feat(ui5-panel): support aria-label and aria-labelledby #1910

merged 4 commits into from
Jul 9, 2020

Conversation

nnaydenow
Copy link
Contributor

Added support for aria-label and aria-labelledby

  • if aria-label or aria-labelledby are set externally, aria-label is set inside the shadowDOM.
  • if not, aria-labelledby is automatically set to the reference of internal title, when the header-text property is set.
  • if panel has items in header slot these values are propagated to expand/collapse button.

In addition:

  • accessibility attributes are removed from header container when the panel is fixed.
  • panel could be expanded/collapsed throught expand/collapse button when it has items in header slot.

#1880

nnaydenow added 2 commits July 6, 2020 17:33
Added support for **aria-label** and **aria-labelledby**
* if **aria-label** or **aria-labelledby** are set externally, **aria-label** is set inside the shadowDOM.
* if not, **aria-labelledby** is automatically set to the reference of internal title, when the header-text property is set.
* if panel has items in **header** slot these values are propagated to expand/collapse button.

In addition:
* accessibility attributes are removed from header container when the panel is fixed.
* panel could be expanded/collapsed throught expand/collapse button when it has items in **header** slot.

#Fixes: 1880
@nnaydenow nnaydenow changed the title Panel feat(ui5-panel): support aria-label and aria-labelledby Jul 6, 2020
Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

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

Please fix this test:
✖ tests aria-label and aria-labelledby attributes

@ilhan007 ilhan007 added the SAP SF label Jul 8, 2020
@vladitasev vladitasev merged commit 8cb7c48 into SAP:master Jul 9, 2020
@nnaydenow nnaydenow deleted the panel 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants