Skip to content

Commit 55a5edc

Browse files
committed
WIP: issues regarding tooltip position for demo reactivity
1 parent 3191c98 commit 55a5edc

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

dist/build.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/build.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"prepublish": "npm run build"
3535
},
3636
"dependencies": {
37-
"v-tooltip": "2.0.0-beta.1",
37+
"v-tooltip": "2.0.0-beta.4",
3838
"vue": "^2.2.1",
3939
"vue-clickaway": "^2.1.0",
4040
"vue-ripple-directive": "^1.0.0"

src/FAB.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</template>
5252
<template v-else>
5353
<template v-if="mainTooltip">
54-
<div v-tooltip="{ content: mainTooltip, placement: tooltipPosition, classes: 'fab-tooltip'}"
54+
<div v-bind:v-tooltip="{ content: mainTooltip, placement: tooltipPosition, classes: 'fab-tooltip'}"
5555
class="fab pointer" :style="{ 'background-color': bgColor }"
5656
>
5757
<i class="material-icons md-36 main" :class="{ rotate: toggle }">{{mainIcon}}</i>
@@ -150,10 +150,10 @@
150150
},
151151
methods: {
152152
tooltipPos() {
153-
if(this.position === 'top-right' || this.position === 'bototm-right') {
154-
this.mainTooltip.placement = 'left'
153+
if(this.position === 'top-right' || this.position === 'bottom-right') {
154+
this.tooltipPosition = 'left'
155155
} else {
156-
this.mainTooltip.placement = 'right'
156+
this.tooltipPosition = 'right'
157157
}
158158
},
159159
toParent(name) {
@@ -228,6 +228,7 @@
228228
background: #333333;
229229
color: white;
230230
border-radius: 0px;
231+
font-size: .85rem;
231232
padding: 5px 10px 4px;
232233
}
233234

0 commit comments

Comments
 (0)