Skip to content

Commit

Permalink
Merge pull request #9411 from marcellamaki/add-aria-label-to-immersiv…
Browse files Browse the repository at this point in the history
…e-toolbar-icon-buttons

Adds aria labels to immersive toolbar buttons for back and close
  • Loading branch information
rtibbles authored May 16, 2022
2 parents 2a336b2 + 9950699 commit 0b2c575
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kolibri/core/assets/src/views/ImmersiveToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,23 @@
<!-- TODO add aria label? -->
<KIconButton
v-if="icon === 'close'"
:ariaLabel="coreString('closeAction')"
icon="close"
:color="$themeTokens.textInverted"
tabindex="-1"
/>
<KIconButton
v-else
icon="back"
:ariaLabel="coreString('goBackAction')"
:color="$themeTokens.textInverted"
/>
</router-link>

<span v-else>
<KIconButton
v-if="icon === 'close'"
:ariaLabel="coreString('closeAction')"
icon="close"
:color="$themeTokens.textInverted"
tabindex="-1"
Expand All @@ -43,6 +46,7 @@
<KIconButton
v-else
icon="back"
:ariaLabel="coreString('goBackAction')"
:color="$themeTokens.textInverted"
@click="$emit('navIconClick')"
/>
Expand All @@ -57,12 +61,14 @@
import UiToolbar from 'kolibri.coreVue.components.UiToolbar';
import { validateLinkObject } from 'kolibri.utils.validators';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
export default {
name: 'ImmersiveToolbar',
components: {
UiToolbar,
},
mixins: [commonCoreStrings],
props: {
appBarTitle: {
type: String,
Expand Down

0 comments on commit 0b2c575

Please sign in to comment.