Commit 24a272f9 authored by Filipa Lacerda's avatar Filipa Lacerda

Uses tooltip correctly in comparion_pane component. Removes incorrect usage of aria attributes

parent ebdc7f11
<script> <script>
import { parseSeconds, stringifyTime } from '../../../lib/utils/pretty_time'; import { parseSeconds, stringifyTime } from '../../../lib/utils/pretty_time';
import tooltip from '../../../vue_shared/directives/tooltip';
export default { export default {
name: 'TimeTrackingComparisonPane', name: 'TimeTrackingComparisonPane',
directives: {
tooltip,
},
props: { props: {
timeSpent: { timeSpent: {
type: Number, type: Number,
...@@ -51,17 +55,12 @@ export default { ...@@ -51,17 +55,12 @@ export default {
<div class="time-tracking-comparison-pane"> <div class="time-tracking-comparison-pane">
<div <div
class="compare-meter" class="compare-meter"
data-toggle="tooltip"
data-placement="top"
role="timeRemainingDisplay"
:aria-valuenow="timeRemainingTooltip"
:title="timeRemainingTooltip" :title="timeRemainingTooltip"
:data-original-title="timeRemainingTooltip" v-tooltip
:class="timeRemainingStatusClass" :class="timeRemainingStatusClass"
> >
<div <div
class="meter-container" class="meter-container"
role="timeSpentPercent"
:aria-valuenow="timeRemainingPercent" :aria-valuenow="timeRemainingPercent"
> >
<div <div
......
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