1<template> 2 <b-button 3 v-b-tooltip 4 variant="link" 5 class="btn-tooltip btn-icon-only" 6 :title="title" 7 > 8 <icon-tooltip /> 9 <span class="sr-only">{{ $t('global.ariaLabel.tooltip') }}</span> 10 </b-button> 11</template> 12 13<script> 14import IconTooltip from '@carbon/icons-vue/es/information/16'; 15import { useI18n } from 'vue-i18n'; 16 17export default { 18 components: { IconTooltip }, 19 props: { 20 title: { 21 type: String, 22 default: '', 23 }, 24 }, 25 data() { 26 return { 27 $t: useI18n().t, 28 }; 29 }, 30}; 31</script> 32 33<style lang="scss" scoped> 34@import '@/assets/styles/bmc/helpers/_index.scss'; 35@import '@/assets/styles/bootstrap/_helpers.scss'; 36 37.btn-tooltip { 38 padding: 0; 39 line-height: 1em; 40 svg { 41 vertical-align: baseline; 42 } 43} 44</style> 45