mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 00:26:34 +03:00
fix: improve accessible label by using the property name (#2224)
This commit is contained in:
parent
b8f7da6b00
commit
12be1bc5ff
|
@ -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'} />
|
||||
|
|
Loading…
Reference in New Issue
Block a user