Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Merge pull request #483 from storyblok/chore/add-form-item-tooltip-po…
Browse files Browse the repository at this point in the history
…sition

feat(ON-1528): add support for modifying tooltip position on form item
  • Loading branch information
lisilinhart authored Dec 1, 2023
2 parents 5eae714 + 98e2977 commit 89ff7cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/FormItem/SbFormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export default {
type: String,
default: null,
},
tooltipPosition: {
type: String,
default: 'top',
},
labelFor: {
type: String,
default: null,
Expand All @@ -78,7 +82,7 @@ export default {
computed: {
computedTooltip() {
if (this.helperIconText) {
return { label: this.helperIconText, textAlign: this.helperTextAlign }
return { label: this.helperIconText, textAlign: this.helperTextAlign, position: this.tooltipPosition }
}
return null
},
Expand Down

0 comments on commit 89ff7cf

Please sign in to comment.