Skip to content

Commit b742553

Browse files
committed
Improve tooltip accessibility
1 parent 6a44b08 commit b742553

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/components/cylc/gscan/GScan.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
154154
<job :status="state" />
155155
<v-tooltip
156156
activator="parent"
157-
color="black"
158157
location="top"
159158
>
160159
<!-- tooltip text -->
161160
<span>
162-
<span class="text-grey">{{ countTasksInState(scope.node.node, state) }} {{ state }}. Recent {{ state }} tasks:</span>
161+
<span class="text-grey-lighten-1">{{ countTasksInState(scope.node.node, state) }} {{ state }}. Recent {{ state }} tasks:</span>
163162
<br/>
164163
<span v-for="(task, index) in tasks.slice(0, maximumTasksDisplayed)" :key="index">
165164
{{ task }}<br v-if="index !== tasks.length -1" />

src/components/graphqlFormGenerator/FormGenerator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2727
v-for="input in inputs"
2828
v-bind:key="input.label"
2929
>
30-
<v-list-item-title>
30+
<v-list-item-title class="d-flex align-center mb-2">
3131
<!-- input label - the display title for this input -->
3232
{{ input.label }}
3333
<!-- help button - tooltip for more information -->
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3636
location="bottom"
3737
>
3838
<template v-slot:activator="{ props }">
39-
<v-icon v-bind="props">
39+
<v-icon v-bind="props" class="mx-2">
4040
{{ icons.help }}
4141
</v-icon>
4242
</template>

src/styles/cylc/_tooltip.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
.v-tooltip__content {
19-
max-width: 600px;
18+
.v-tooltip .v-overlay__content {
19+
max-width: 600px !important;
20+
// Increase default opacity of bg:
21+
background: rgba(var(--v-theme-surface-variant), 0.9);
2022

2123
p:last-child {
2224
// If we have markdown paragraphs in the tooltip

0 commit comments

Comments
 (0)