xref: /openbmc/webui-vue/src/components/Global/InfoTooltip.vue (revision 7d6b44cb263da09e575c7cb28cab88c1eb339c7b)
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';
15
16export default {
17  components: { IconTooltip },
18  props: {
19    title: {
20      type: String,
21      default: '',
22    },
23  },
24};
25</script>
26
27<style lang="scss" scoped>
28@import '@/assets/styles/bmc/helpers/_index.scss';
29@import '@/assets/styles/bootstrap/_helpers.scss';
30
31.btn-tooltip {
32  padding: 0;
33  line-height: 1em;
34  svg {
35    vertical-align: baseline;
36  }
37}
38</style>
39