-
Notifications
You must be signed in to change notification settings - Fork 149
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
fix(parent-visibility): decouple tab from parent visibility #11759
fix(parent-visibility): decouple tab from parent visibility #11759
Conversation
Deploy preview created for package Built with commit: d521be1da400245c78a928bf9aa8d6a7d4b1284b |
Deploy preview created for package Built with commit: d521be1da400245c78a928bf9aa8d6a7d4b1284b |
Deploy preview created for package Built with commit: d521be1da400245c78a928bf9aa8d6a7d4b1284b |
Deploy preview created for package Built with commit: d521be1da400245c78a928bf9aa8d6a7d4b1284b |
packages/web-components/src/component-mixins/parent-visibility/parent-visibility.ts
Outdated
Show resolved
Hide resolved
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.
The code changes here look good to me, but this is failing ci-check. Can you look into that, @m4olivei ?
Huh, interesting, appraently there is a rule that requires |
Deploy preview created for package Built with commit: d521be1da400245c78a928bf9aa8d6a7d4b1284b |
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.
Okay, now that we have a representative deploy preview, I've found an issue. <dds-cta-block-item-row>
uses ParentVisibilityMixin
, and it's not rendering properly within tabs (see https://ibmdotcom-webcomponents.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/11759/index.html?path=/story/components-cta-block--within-tabs).
Thanks @jkaeser . Looks like |
It turns out that the Tabs Extended component changed structure such that the tab component is no longer a parent to the contents of each tab panel. As such, the In addition, the story for CTA block > Within tabs was not correctly updated in v2 for the new tabs strucutre alluded to above. This is why it's broken on All that is to say, we're now out of scope for the original ask and we kind of need to take this back to the drawing board for v2, which we'll do in a follow up issue. Closing for now. |
Related Ticket(s)
Closes #11749
Description
This decouples
C4DTab
fromParentVisibilityMixin
, which avoids the sideeffect of registering thec4d-tab
component, when you're otherwise just making use ofParentVisibilityMixin
.Changelog
Changed
C4DTab
fromParentVisibilityMixin
by duplicating the event name.