Skip to content

Conversation

@Joice-crypto
Copy link
Contributor

This PR fixes #969

Motivation

I added an arial-label to the delete and download buttons to be recognized in the screen readers.

screenshot

Captura de tela de 2024-07-01 22-35-39

apps/table.js Outdated
` :
`
<button type='button' class='btn btn-danger btn-sm DelButton' id='deleteBtn' data-id='${sanitize(rs[0])}' data-name='${sanitize(rs[1])}' onclick='deleteSld(this)' data-filename='${sanitize(filename)}' data-toggle='modal'>
<button arial-label="Delete" type='button' class='btn btn-danger btn-sm DelButton' id='deleteBtn' data-id='${sanitize(rs[0])}' data-name='${sanitize(rs[1])}' onclick='deleteSld(this)' data-filename='${sanitize(filename)}' data-toggle='modal'>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<button arial-label="Delete" type='button' class='btn btn-danger btn-sm DelButton' id='deleteBtn' data-id='${sanitize(rs[0])}' data-name='${sanitize(rs[1])}' onclick='deleteSld(this)' data-filename='${sanitize(filename)}' data-toggle='modal'>
<button aria-label="Delete" type='button' class='btn btn-danger btn-sm DelButton' id='deleteBtn' data-id='${sanitize(rs[0])}' data-name='${sanitize(rs[1])}' onclick='deleteSld(this)' data-filename='${sanitize(filename)}' data-toggle='modal'>

@Joice-crypto Joice-crypto changed the title I added arial label to the buttons I added aria-label to the buttons Jul 3, 2024
@nwanduka
Copy link
Contributor

nwanduka commented Jul 4, 2024

Thanks a lot @Joice-crypto for working on this. The changes look good to me. We'll wait for Birm to give a final review, approve, and merge.

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

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

Thank you!

@birm birm merged commit 427b72a into camicroscope:develop Jul 5, 2024
@Joice-crypto Joice-crypto deleted the buttons_name branch July 8, 2024 01:13
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