mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Masthead a11y; for icon-only tabs display the tooltip as a sr-only text placeholder.
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
:title="tab.tooltip"
|
||||
@click="open(tab, $event)">
|
||||
<template v-if="tab.icon">
|
||||
<!-- If this is an icon-based tab, inject tooltip directly for screen readers -->
|
||||
<span class="sr-only">{{ tab.tooltip || tab.id }}</span>
|
||||
<span :class="iconClasses" />
|
||||
<span v-if="toggle" class="nav-note fa fa-check" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user