Skip to content

Commit

Permalink
fix: improve accessible label by using the property name (Redocly#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagfs authored and ckoegel committed Jun 6, 2023
1 parent df2aa97 commit 4c116cc
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 4c116cc

Please sign in to comment.