Add aria-label to SearchHistory items (a11y — items are decorative without text label)
This commit is contained in:
@@ -141,6 +141,7 @@ export const SearchHistory: FC = () => {
|
||||
className="search-history-item"
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
aria-label={item.label}
|
||||
onClick={() => handleItemClick(item)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter" || e.key === " ") {
|
||||
|
||||
Reference in New Issue
Block a user