Fix accessible label on left panel spotlight trigger (#87)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-09-25 11:01:38 +01:00 committed by GitHub
parent 2e895da39f
commit ad94c39e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ export default class RoomSearch extends React.PureComponent<IProps> {
);
return (
<AccessibleButton onClick={this.openSpotlight} className={classes}>
<AccessibleButton onClick={this.openSpotlight} className={classes} aria-label={_t("action|search")}>
{icon}
{!this.props.isMinimized && (
<div className="mx_RoomSearch_spotlightTriggerText">{_t("action|search")}</div>