Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
a11y: add missing aria-label to delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Jun 20, 2024
1 parent f74d97b commit 587717f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/settings/ThemeChoicePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ function CustomThemeList(): JSX.Element {
<li key={theme.name} className="mx_ThemeChoicePanel_CustomThemeList_theme" aria-label={theme.name}>
<span className="mx_ThemeChoicePanel_CustomThemeList_name">{theme.name}</span>
<IconButton
aria-label={_t("action|delete")}
onClick={async () => {
// Get the custom themes and do a cheap clone
// To avoid to mutate the original array in the settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ exports[`<ThemeChoicePanel /> custom theme should display custom theme 1`] = `
Alice theme
</span>
<button
aria-label="Delete"
class="_icon-button_16nk7_17"
role="button"
style="--cpd-icon-button-size: 32px;"
Expand Down Expand Up @@ -576,6 +577,7 @@ exports[`<ThemeChoicePanel /> custom theme should render the custom theme sectio
Alice theme
</span>
<button
aria-label="Delete"
class="_icon-button_16nk7_17"
role="button"
style="--cpd-icon-button-size: 32px;"
Expand Down

0 comments on commit 587717f

Please sign in to comment.