Commit 62eefd5d authored by Phil Hughes's avatar Phil Hughes

Merge branch 'russell/migrate_labels_sidebar-tooltip' into 'master'

Migrate labels sidebar tooltip

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