blob: f5063e91528fca192f1a227e2ded94e8bee32d7b [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 />
SurenNeware6e2cb972020-12-24 20:58:16 +05309 <span class="sr-only">{{ $t('global.ariaLabel.tooltip') }}</span>
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070010 </b-button>
11</template>
12
13<script>
14import IconTooltip from '@carbon/icons-vue/es/information/16';
Surya V603cfbf2024-07-11 15:19:46 +053015import { useI18n } from 'vue-i18n';
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070016
17export default {
18 components: { IconTooltip },
19 props: {
20 title: {
21 type: String,
Derick Montague602e98a2020-10-21 16:20:00 -050022 default: '',
23 },
24 },
Surya V603cfbf2024-07-11 15:19:46 +053025 data() {
26 return {
27 $t: useI18n().t,
28 };
29 },
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070030};
31</script>
32
33<style lang="scss" scoped>
Ed Tanous9c729792024-03-23 14:56:34 -070034@import '@/assets/styles/bmc/helpers/_index.scss';
35@import '@/assets/styles/bootstrap/_helpers.scss';
36
Yoshie Muranaka1be6b412020-04-16 12:03:38 -070037.btn-tooltip {
38 padding: 0;
39 line-height: 1em;
40 svg {
41 vertical-align: baseline;
42 }
43}
44</style>