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): implement accessibility #864

Merged
merged 2 commits into from
Oct 18, 2019

Conversation

ivoplashkov
Copy link
Member

Implemented accessibility for the ui5-panel.


describe("Accessibility", () => {

it("tests whether aria attributes are set correctly without custom header", () => {
Copy link
Member

Choose a reason for hiding this comment

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

Regarding test 1:

  • instead of "without custom header", call it "with native header"
  • Here you should test the the button attributes are missing (as they should be passes as undefined)
  • Rename those
    Aria-expanded -> aria-expanded
    Aria-controls -> aria-controls

Regarding test 2:

  • instead of "in case of custom header" - "with custom header". Or use "in case of"in the first test name as well,
    the point is to have consistent names as possible.
  • Here you should test the panel header attributes are missing (as they should be passes as undefined).

@ilhan007 ilhan007 changed the title chore(ui5-panel): implement accessibility feat(ui5-panel): implement accessibility Oct 18, 2019
@ilhan007 ilhan007 merged commit b133468 into SAP:master Oct 18, 2019
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