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

Accessibility updates for 'delete function' button in FunctionManageComponent #2158

Merged
merged 1 commit into from
Dec 16, 2017

Conversation

andimarc
Copy link
Contributor

No description provided.

<span class="clickable delete-app" (click)="deleteFunction()" [fnWriteAccess]="functionApp">
<span load-image="image/delete.svg" class="icon-small"></span>
<button class="delete-app" (click)="deleteFunction()" [fnWriteAccess]="functionApp">
<span load-image="image/delete.svg" class="icon-small" role="presentation"></span>
Copy link
Contributor

Choose a reason for hiding this comment

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

role="presentation" [](start = 75, length = 19)

Is this actually necessary? Does the screenreader try to read it or something if it's placed within a focusable element?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on testing with Narrator, setting this attribute doesn't make any difference here since the doesn't contain any text.

(If there were text inside the , Narrator would read it unless the span had role="presentation".)

I will leave it since I'm not entirely sure, and the ARIA documentation states that all children of a element need to be presentational.

Copy link
Contributor

@ehamai ehamai left a comment

Choose a reason for hiding this comment

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

:shipit:

@andimarc andimarc merged commit d4f7736 into dev Dec 16, 2017
@andimarc andimarc deleted the andimarc_funcdelete branch December 16, 2017 00:27
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