mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-10 16:22:27 +03:00
fix: improve accessible label by using the property name (#2224)
This commit is contained in:
parent
df2aa97091
commit
4c116cc583
|
@ -73,7 +73,7 @@ export class Field extends React.Component<FieldProps> {
|
||||||
<button
|
<button
|
||||||
onClick={this.toggle}
|
onClick={this.toggle}
|
||||||
onKeyPress={this.handleKeyPress}
|
onKeyPress={this.handleKeyPress}
|
||||||
aria-label="expand properties"
|
aria-label={`expand ${name}`}
|
||||||
>
|
>
|
||||||
<span className="property-name">{name}</span>
|
<span className="property-name">{name}</span>
|
||||||
<ShelfIcon direction={expanded ? 'down' : 'right'} />
|
<ShelfIcon direction={expanded ? 'down' : 'right'} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user