discourse/app/assets/javascripts/float-kit/addon/components
Joffrey JAFFEUX 043b4a4187
FIX: replaces data-tooltip usage by <DTooltip /> (#24062)
As much as possible I would like us to avoid having to go the with a global event listener on click/mouseover. For now I have removed all cases of `data-tooltip`, if we clearly identify a use case of a global event listener we might reconsider this.

The following changes are also included:
- by default tooltips won't attempt to focus first focusable element anymore
- tooltip will now use `cursor: pointer` by default
- a new service has been introduced: `InternalTooltip` which is responsible to track the current instance displayed by a `<DTooltip />`. Portal elements when replaced are not properly cleaned and I couldn't figure out a way to have a proper hook to ensure the previous `DTooltipInstance` is properly set as not expanded; this problem was very visible when using a tooltip as interactive and hovering another tooltip, which would replace the interactive tooltip as not closed.
2023-10-23 21:09:02 +02:00
..
d-button-tooltip.gjs DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
d-default-toast.gjs DEV: Sort imports 2023-10-10 21:46:54 +01:00
d-float-body.gjs FIX: replaces data-tooltip usage by <DTooltip /> (#24062) 2023-10-23 21:09:02 +02:00
d-float-portal.gjs DEV: Move gjs <template> to bottom of class definitions 2023-10-10 21:46:54 +01:00
d-inline-float.gjs DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
d-inline-menu.gjs DEV: Use @discourse/lint-configs (#24038) 2023-10-23 12:08:35 +02:00
d-inline-tooltip.gjs DEV: Use @discourse/lint-configs (#24038) 2023-10-23 12:08:35 +02:00
d-menu.gjs DEV: Use @discourse/lint-configs (#24038) 2023-10-23 12:08:35 +02:00
d-popover.gjs DEV: Use @discourse/lint-configs (#24038) 2023-10-23 12:08:35 +02:00
d-toasts.gjs DEV: toasts improvements (#24046) 2023-10-23 15:23:10 +02:00
d-tooltip.gjs FIX: replaces data-tooltip usage by <DTooltip /> (#24062) 2023-10-23 21:09:02 +02:00