Skip to content

fix: label the task card edit button for screen readers - #465

Open
Mario-Mohar wants to merge 1 commit into
anoopcodehack:mainfrom
Mario-Mohar:fix/edit-button-aria-label
Open

fix: label the task card edit button for screen readers#465
Mario-Mohar wants to merge 1 commit into
anoopcodehack:mainfrom
Mario-Mohar:fix/edit-button-aria-label

Conversation

@Mario-Mohar

Copy link
Copy Markdown
Contributor

What

Gives the ✏️ edit button in the task card footer an aria-label and a title.

Why

The button had neither, so its accessible name fell back to its own content — the ✏️ emoji — and a screen reader announced it as "pencil, button" instead of describing the action. Sighted users got no tooltip either, and since the button only fades in on hover there was nothing else to go by.

The copy and pin buttons next to the title already follow this pattern, so this just brings the third button in line with its siblings. It also picks up the explicit type="button" those two carry.

Testing

Ran the board locally with several tasks and inspected the rendered button: its accessible name is now "Edit task" rather than the emoji, the tooltip appears on hover, and clicking it still opens the edit modal as before. No console errors.

Closes #450

The edit button in the card footer had neither aria-label nor title, so
its accessible name fell back to the emoji and was announced as
"pencil, button". Sighted users got no tooltip either, and the button
only fades in on hover.

Add aria-label and title, matching the pattern the copy and pin buttons
next to the title already use, plus the explicit type="button" those
siblings carry.

Closes anoopcodehack#450
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.

Edit button on the task card is only announced as "pencil" ✏️

1 participant