Welcome to mirror list, hosted at ThFree Co, Russian Federation.

toolbar_item.vue « rich_content_editor « static_site_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85a67c087bbf29a12cbf8642c2d612520e2fcc87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<script>
import { GlIcon, GlTooltipDirective } from '@gitlab/ui';

export default {
  components: {
    GlIcon,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
  props: {
    icon: {
      type: String,
      required: true,
    },
    tooltip: {
      type: String,
      required: true,
    },
  },
};
</script>
<template>
  <button
    v-gl-tooltip="{ title: tooltip }"
    :aria-label="tooltip"
    class="p-0 gl-display-flex toolbar-button"
  >
    <gl-icon class="gl-mx-auto gl-align-self-center" :name="icon" />
  </button>
</template>