axa-ch-webhub-cloud / pattern-library

AXA CH UI component library. Please share, comment, create issues and work with us!
https://axa-ch-webhub-cloud.github.io/plib-feature/develop
125 stars 18 forks source link

axa-footer broken when versioned: re-slotting of nested children refers to unversioned component name #2452

Closed markus-walther closed 7 months ago

markus-walther commented 10 months ago

<axa-footer> takes slotted light-DOM children for SEO reasons.

To cater for usage scenarios where those children are not direct descendants of <axa-footer>, but rather nested under some other HTML tag(s), an internal function re-slots them to be direct descendants.

A parent-chasing loop terminates when the host element <axa-footer> itself is reached.

This fails for versioned <axa-footer-aem> and similar, because comparison in the loop condition is against the unversioned class tag name 'AXA-FOOTER'.

Fix this bug.