mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-28 12:39:57 +00:00
Fixed notification console screen reader issue (#193)
* Fixed notification console screen reader issue * Added aria expanded Co-authored-by: Daniel Si Pham <v-danpha@microsoft.com>
This commit is contained in:
parent
a2845a0102
commit
af820c0fbf
@ -130,11 +130,14 @@ export class NotificationConsoleComponent extends React.Component<
|
|||||||
<span className="headerStatusEllipsis">{this.state.headerStatus}</span>
|
<span className="headerStatusEllipsis">{this.state.headerStatus}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="expandCollapseButton" role="button" tabIndex={0}>
|
<div
|
||||||
<img
|
className="expandCollapseButton"
|
||||||
src={this.state.isExpanded ? ChevronDownIcon : ChevronUpIcon}
|
role="button"
|
||||||
alt={this.state.isExpanded ? "collapse console" : "expand console"}
|
tabIndex={0}
|
||||||
/>
|
aria-label={this.state.isExpanded ? "collapse console" : "expand console"}
|
||||||
|
aria-expanded={this.state.isExpanded}
|
||||||
|
>
|
||||||
|
<img src={this.state.isExpanded ? ChevronDownIcon : ChevronUpIcon} alt="" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AnimateHeight
|
<AnimateHeight
|
||||||
|
@ -68,12 +68,14 @@ exports[`NotificationConsoleComponent renders the console (expanded) 1`] = `
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
aria-expanded={true}
|
||||||
|
aria-label="collapse console"
|
||||||
className="expandCollapseButton"
|
className="expandCollapseButton"
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="collapse console"
|
alt=""
|
||||||
src=""
|
src=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user