-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace all title attributes with actual boostrap tooltip functionality #1533
Conversation
5f70af1
to
d1f974b
Compare
@@ -35,7 +35,7 @@ | |||
/> | |||
<l-control class="leaflet-bar"> | |||
<a | |||
:title="$t('tooltip.goToCurrentLocation')" | |||
v-b-tooltip.hover="{ title: $t('tooltip.goToCurrentLocation'), container: '#body' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you skip this and do it in the other issue PR, to avoid conflicts. Up to you tho
@@ -15,8 +15,8 @@ | |||
class="d-flex align-items-center text-primary p-0" | |||
> | |||
<span | |||
v-b-tooltip.hover="{ title: label, container: '#body' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, i would do it on the map issue instead to avoid conflicts and possible problems with that
@@ -49,7 +49,7 @@ | |||
/> | |||
<l-control class="leaflet-bar"> | |||
<a | |||
:title="$t('geometry.tooltip.goToCurrentLocation')" | |||
v-b-tooltip.hover="{ title: $t('geometry.tooltip.goToCurrentLocation'), container: '#body' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here (regarding conflicts)
@@ -22,7 +22,7 @@ | |||
/> | |||
<l-control class="leaflet-bar"> | |||
<a | |||
:title="$t('geometry.tooltip.goToCurrentLocation')" | |||
v-b-tooltip.hover="{ title: $t('geometry.tooltip.goToCurrentLocation'), container: '#body' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here (regarding conflicts)
c44c1eb
to
27af2a4
Compare
Add "Expression" and "Warning text" tooltips |
@@ -37,6 +40,10 @@ | |||
<script> | |||
|
|||
export default { | |||
i18nOptions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this break anything else tho? Since it wasn't there before
@@ -76,7 +76,10 @@ | |||
:placeholder="$t('validators.expression.placeholder')" | |||
/> | |||
<b-input-group-prepend> | |||
<b-button variant="warning"> | |||
<b-button | |||
v-b-tooltip.hover="{ title: $t('validators.error.placeholder'), container: '#body' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit confused what this translation means, it should be validators.error.tooltip
And should be Warning text
class="d-inline-block mw-100 pt-0" | ||
:class="{ 'py-1': !horizontal }" | ||
:title="label" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class is always last, not sure why you moved it after it. Same for the others
Guess the linter issue will make this easier
6f9de1a
to
0a7e50d
Compare
@@ -1,6 +1,7 @@ | |||
<template> | |||
<c-translator-button | |||
v-if="canManageResourceTranslations && resourceTranslationsEnabled" | |||
v-b-tooltip.hover="{ title: tooltip, container: '#body' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do it here if you made a prop for c-translator-button?
@@ -45,6 +46,11 @@ export default { | |||
type: Boolean, | |||
default: () => false, | |||
}, | |||
|
|||
tooltip: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you do a v-bind to the c-translator-button, you don't need to define the prop
@@ -19,6 +19,7 @@ | |||
/> | |||
<b-input-group-append> | |||
<chart-translator | |||
:tooltip="$t('general.translations')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing it on every chart translator, might make sense to just do it in the chart-translator component dirrectly.
@@ -11,7 +11,7 @@ | |||
<hr v-if="r.dismissedAt && sortedReminders[i - 1] ? !sortedReminders[i - 1].dismissedAt : false "> | |||
|
|||
<div | |||
class="overflow-auto border card shadow-sm my-2 p-1" | |||
class="border card shadow-sm my-2 p-1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure we can just remove the overflow-auto? Pretty sure it was there for a reason
880dd9f
to
04b2b5d
Compare
04b2b5d
to
62f57d1
Compare
The following changes are implemented
TODO: Summary
Changes in the user interface:
TODO: Add screenshots, recordings or remove this section
Checklist when submitting a final (!draft) PR