Improve accessible label by using the property name

This commit is contained in:
Dag Frode Solberg 2022-12-06 09:39:56 +01:00
parent 3d410b6002
commit dcff520d0a

View File

@ -73,7 +73,7 @@ export class Field extends React.Component<FieldProps> {
<button
onClick={this.toggle}
onKeyPress={this.handleKeyPress}
aria-label="expand properties"
aria-label={`expand ${name}`}
>
<span className="property-name">{name}</span>
<ShelfIcon direction={expanded ? 'down' : 'right'} />