Yoshie Muranaka | 1be6b41 | 2020-04-16 12:03:38 -0700 | [diff] [blame] | 1 | <template> |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 2 | <b-button |
| 3 | v-b-tooltip |
| 4 | variant="link" |
| 5 | class="btn-tooltip btn-icon-only" |
| 6 | :title="title" |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 7 | > |
Yoshie Muranaka | 1be6b41 | 2020-04-16 12:03:38 -0700 | [diff] [blame] | 8 | <icon-tooltip /> |
SurenNeware | 6e2cb97 | 2020-12-24 20:58:16 +0530 | [diff] [blame] | 9 | <span class="sr-only">{{ $t('global.ariaLabel.tooltip') }}</span> |
Yoshie Muranaka | 1be6b41 | 2020-04-16 12:03:38 -0700 | [diff] [blame] | 10 | </b-button> |
| 11 | </template> |
| 12 | |
| 13 | <script> |
| 14 | import IconTooltip from '@carbon/icons-vue/es/information/16'; |
| 15 | |
| 16 | export default { |
| 17 | components: { IconTooltip }, |
| 18 | props: { |
| 19 | title: { |
| 20 | type: String, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 21 | default: '', |
| 22 | }, |
| 23 | }, |
Yoshie Muranaka | 1be6b41 | 2020-04-16 12:03:38 -0700 | [diff] [blame] | 24 | }; |
| 25 | </script> |
| 26 | |
| 27 | <style lang="scss" scoped> |
| 28 | .btn-tooltip { |
| 29 | padding: 0; |
| 30 | line-height: 1em; |
| 31 | svg { |
| 32 | vertical-align: baseline; |
| 33 | } |
| 34 | } |
| 35 | </style> |