Commit aac3fe5e authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Use `aria-expanded` instead of `aria-pressed` per a11y audit

parent 3ba68201
......@@ -119,7 +119,7 @@ describe('TopBar', () => {
wrapper.update();
assert.isTrue(helpButton.props().isPressed);
assert.isTrue(helpButton.props().isExpanded);
});
context('help service handler configured in services', () => {
......@@ -228,7 +228,7 @@ describe('TopBar', () => {
const wrapper = createTopBar();
const shareButton = getButton(wrapper, 'share');
assert.isTrue(shareButton.prop('isPressed'));
assert.isTrue(shareButton.prop('isExpanded'));
});
it('displays search input in the sidebar', () => {
......
......@@ -105,7 +105,7 @@ function TopBar({
<Button
className="top-bar__icon-button"
icon="help"
isPressed={currentActivePanel === uiConstants.PANEL_HELP}
isExpanded={currentActivePanel === uiConstants.PANEL_HELP}
onClick={requestHelp}
title="Help"
useCompactStyle
......@@ -135,7 +135,7 @@ function TopBar({
<Button
className="top-bar__icon-button"
icon="share"
isPressed={
isExpanded={
currentActivePanel === uiConstants.PANEL_SHARE_ANNOTATIONS
}
onClick={toggleSharePanel}
......@@ -146,7 +146,7 @@ function TopBar({
<Button
className="top-bar__icon-button"
icon="help"
isPressed={currentActivePanel === uiConstants.PANEL_HELP}
isExpanded={currentActivePanel === uiConstants.PANEL_HELP}
onClick={requestHelp}
title="Help"
useCompactStyle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment