summaryrefslogtreecommitdiff
path: root/src/components/Global/InfoTooltip.vue
blob: f3cb7f12b6c5bd0655481f519644cab336c113b2 (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
<template>
  <b-button v-b-tooltip variant="link" class="btn-tooltip" :title="title">
    <span class="sr-only">{{ $t('global.ariaLabel.tooltip') }}</span>
    <icon-tooltip />
  </b-button>
</template>

<script>
import IconTooltip from '@carbon/icons-vue/es/information/16';

export default {
  components: { IconTooltip },
  props: {
    title: {
      type: String,
      default: '',
    },
  },
};
</script>

<style lang="scss" scoped>
.btn-tooltip {
  padding: 0;
  line-height: 1em;
  svg {
    vertical-align: baseline;
  }
}
</style>