Commit 195bfe44 authored by Russell Dickenson's avatar Russell Dickenson Committed by Phil Hughes

Migrate labels sidebar tooltip

parent 746c9b10
<script> <script>
import { GlIcon } from '@gitlab/ui'; import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { s__, sprintf } from '~/locale'; import { s__, sprintf } from '~/locale';
import tooltip from '~/vue_shared/directives/tooltip';
export default { export default {
directives: { directives: {
tooltip, GlTooltip: GlTooltipDirective,
}, },
components: { components: {
GlIcon, GlIcon,
...@@ -45,12 +44,9 @@ export default { ...@@ -45,12 +44,9 @@ export default {
<template> <template>
<div <div
v-tooltip v-gl-tooltip.left.viewport
:title="labelsList" :title="labelsList"
class="sidebar-collapsed-icon" class="sidebar-collapsed-icon"
data-placement="left"
data-container="body"
data-boundary="viewport"
@click="handleClick" @click="handleClick"
> >
<gl-icon name="labels" /> <gl-icon name="labels" />
......
...@@ -81,9 +81,7 @@ describe('DropdownValueCollapsedComponent', () => { ...@@ -81,9 +81,7 @@ describe('DropdownValueCollapsedComponent', () => {
describe('template', () => { describe('template', () => {
it('renders component container element with tooltip`', () => { it('renders component container element with tooltip`', () => {
expect(vm.$el.dataset.placement).toBe('left'); expect(vm.$el.title).toBe(vm.labelsList);
expect(vm.$el.dataset.container).toBe('body');
expect(vm.$el.dataset.originalTitle).toBe(vm.labelsList);
}); });
it('renders tags icon element', () => { it('renders tags icon element', () => {
......
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