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

Commit

Permalink
Remove tabindex from filter remove button (#8919)
Browse files Browse the repository at this point in the history
Filters can already be removed via backspace
Removing the tabindex ensures the search input is focused by default instead
  • Loading branch information
justjanne committed Jun 28, 2022
1 parent 9cf03a8 commit e1d6356
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/dialogs/spotlight/SpotlightDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
})}>
<span>{ filterToLabel(filter) }</span>
<AccessibleButton
tabIndex={-1}
alt={_t("Remove search filter for %(filter)s", {
filter: filterToLabel(filter),
})}
Expand Down

0 comments on commit e1d6356

Please sign in to comment.