summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-06-08 18:04:41 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-06-08 18:37:17 +0100
commit24a272f98cc43e65da3771872fc126e7a92bc4ae (patch)
tree540031c6f02a55f5e6f3f7b7c1ca38c01f9d290c
parentebdc7f11d9c1a2a492e4af6918d407882ce5737d (diff)
downloadgitlab-ce-24a272f98cc43e65da3771872fc126e7a92bc4ae.tar.gz
Uses tooltip correctly in comparion_pane component. Removes incorrect usage of aria attributes
-rw-r--r--app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue b/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue
index 6f79310b1cc..0e139cd7f5e 100644
--- a/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue
+++ b/app/assets/javascripts/sidebar/components/time_tracking/comparison_pane.vue
@@ -1,8 +1,12 @@
<script>
import { parseSeconds, stringifyTime } from '../../../lib/utils/pretty_time';
+import tooltip from '../../../vue_shared/directives/tooltip';
export default {
name: 'TimeTrackingComparisonPane',
+ directives: {
+ tooltip,
+ },
props: {
timeSpent: {
type: Number,
@@ -51,17 +55,12 @@ export default {
<div class="time-tracking-comparison-pane">
<div
class="compare-meter"
- data-toggle="tooltip"
- data-placement="top"
- role="timeRemainingDisplay"
- :aria-valuenow="timeRemainingTooltip"
:title="timeRemainingTooltip"
- :data-original-title="timeRemainingTooltip"
+ v-tooltip
:class="timeRemainingStatusClass"
>
<div
class="meter-container"
- role="timeSpentPercent"
:aria-valuenow="timeRemainingPercent"
>
<div