feat(MatTooltip): Mimic native tooltip behaviour
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### Feature Description
##### If nested elements have `MatTooltip`s applied on them, show the innermost tooltip.
Suppose we have a `button` with a `span` inside it.
```html
Mat Tooltip
Native Tooltip
```
If both of these elements have the `title` attribute applied to them and we hover the `span`, the browser shows `title` text of the span.
However, if we use the `MatTooltip` directive, both tooltips are shown to the user.
[Minimal Reproduction on StackBlitz](https://mat-tooltip-vs-native-tooltip.stackblitz.io)
#### Use Case
Whenever you need to show different tooltips for parent and child elements.
Beitragsleitfaden
Rechercherichtung
Beginne mit der verknüpften StackBlitz-Reproduktion und untersuche das Verhalten von MatTooltip bei verschachtelten Elementen. Als abgeschlossen gilt die Aufgabe, wenn beim Überfahren des verschachtelten span nur dessen Tooltip angezeigt wird, während der Tooltip der übergeordneten Schaltfläche weiterhin erscheint, wenn die Schaltfläche selbst überfahren wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100