Skip to content

Commit

Permalink
fix: improve accessible label by using the property name (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagfs authored Dec 29, 2022
1 parent b8f7da6 commit 12be1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Fields/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'} />
Expand Down

0 comments on commit 12be1bc

Please sign in to comment.