Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
269 stars 75 forks source link

[Tabs]: Refactor the `mutationObserver` to invoke when nested children are added/removed #8078

Open Elijbet opened 8 months ago

Elijbet commented 8 months ago

Description

A follow-up to issue #7605.

The current configuration of the mutation observer would only be invoked when direct children are added/removed. Since tab-titles are children of tab-nav the observer would miss these.

Mutations from other children might be helping update the tab-titles, but needs to be improved for the current milestone.

Proposed Advantages

Make the observer work as intended.

Which Component

tabs

Relevant Info

No response

Calcite package

geospatialem commented 1 week ago

Revisit after the spike of https://github.com/Esri/calcite-design-system/issues/2721 to determine if the above is still valid and worthwhile in pursuring.