Skip to content

fix(Disclosure): hidden content bug#1209

Merged
tenphi merged 1 commit into
mainfrom
fix-disclosure-hidden-content-2
Jun 12, 2026
Merged

fix(Disclosure): hidden content bug#1209
tenphi merged 1 commit into
mainfrom
fix-disclosure-hidden-content-2

Conversation

@tenphi

@tenphi tenphi commented Jun 12, 2026

Copy link
Copy Markdown
Member

Note

Low Risk
Localized styling and mod wiring on Disclosure.Content with no API or auth/data changes.

Overview
Fixes Disclosure.Content panels that could collapse to 0px height when the browser’s content-visibility: auto skipped layout for the inner panel while the wrapper was animating open.

ContentElement now uses a shown mod to set content-visibility to visible while the panel is shown (via DisplayTransition’s isShown), and auto otherwise—matching the wrapper’s shown state instead of leaving the inner panel always on auto. Consumer mods are still merged in.

Patch release noted in the changeset for @cube-dev/ui-kit.

Reviewed by Cursor Bugbot for commit f44e2e1. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Jun 12, 2026 8:56am

Request Review

@changeset-bot

changeset-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f44e2e1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-638d01b.

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@github-actions

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 397.47 KB (+0.01% 🔺) Yes 🎉
Tree shaking (just a Button) 113.47 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

@tenphi tenphi merged commit a56c4e0 into main Jun 12, 2026
16 checks passed
@tenphi tenphi deleted the fix-disclosure-hidden-content-2 branch June 12, 2026 08:59
@github-actions github-actions Bot mentioned this pull request Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant