mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-23 01:53:46 +01:00
[Azure][Screen Reader-CosmosDB – Data Explorer] Alt is not correctly defined for the console image on the data explorer page (#247)
* Update NotificationConsoleComponent.tsx 'Accessibiliy for alt image' * Update NotificationConsoleComponent.tsx 'meet Unit test problems' * Update NotificationConsoleComponent.test.tsx.snap Update for snapshot Co-authored-by: Chris896 <caoyiqun2017@gmail.com>
This commit is contained in:
parent
2f978bac69
commit
6b8c9f6961
@ -134,10 +134,13 @@ export class NotificationConsoleComponent extends React.Component<
|
|||||||
className="expandCollapseButton"
|
className="expandCollapseButton"
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
aria-label={this.state.isExpanded ? "collapse console" : "expand console"}
|
aria-label={"console button" + (this.state.isExpanded ? " collapsed" : " expanded")}
|
||||||
aria-expanded={this.state.isExpanded}
|
aria-expanded={!this.state.isExpanded}
|
||||||
>
|
>
|
||||||
<img src={this.state.isExpanded ? ChevronDownIcon : ChevronUpIcon} alt="" />
|
<img
|
||||||
|
src={this.state.isExpanded ? ChevronDownIcon : ChevronUpIcon}
|
||||||
|
alt={this.state.isExpanded ? "ChevronDownIcon" : "ChevronUpIcon"}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AnimateHeight
|
<AnimateHeight
|
||||||
|
@ -68,14 +68,14 @@ exports[`NotificationConsoleComponent renders the console (expanded) 1`] = `
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
aria-expanded={true}
|
aria-expanded={false}
|
||||||
aria-label="collapse console"
|
aria-label="console button collapsed"
|
||||||
className="expandCollapseButton"
|
className="expandCollapseButton"
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt=""
|
alt="ChevronDownIcon"
|
||||||
src=""
|
src=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user