blob: cd7acc1732323b98942e25035426a8bca5a36ac1 [file] [log] [blame]
Yoshie Muranaka1be6b412020-04-16 12:03:38 -07001<template>
Dixsie Wolmers30f11f82020-11-10 16:07:56 -06002 <b-button
3 v-b-tooltip
4 variant="link"
5 class="btn-tooltip btn-icon-only"
6 :title="title"
Dixsie Wolmers30f11f82020-11-10 16:07:56 -06007 >
Yoshie Muranaka1be6b412020-04-16 12:03:38 -07008 <icon-tooltip />
jason westoverd36ac8a2025-11-03 20:58:59 -06009 <span class="visually-hidden-focusable">
10 {{ $t('global.ariaLabel.tooltip') }}
11 </span>
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070012 </b-button>
13</template>
14
15<script>
16import IconTooltip from '@carbon/icons-vue/es/information/16';
Surya Vde23ea22024-07-11 15:19:46 +053017import { useI18n } from 'vue-i18n';
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070018
19export default {
20 components: { IconTooltip },
21 props: {
22 title: {
23 type: String,
Derick Montague602e98a2020-10-21 16:20:00 -050024 default: '',
25 },
26 },
Surya Vde23ea22024-07-11 15:19:46 +053027 data() {
28 return {
29 $t: useI18n().t,
30 };
31 },
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070032};
33</script>
34
35<style lang="scss" scoped>
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070036.btn-tooltip {
37 padding: 0;
38 line-height: 1em;
39 svg {
40 vertical-align: baseline;
41 }
42}
43</style>