Skip to content

Use native details for Collapse - #43443

Draft
mdo wants to merge 1 commit into
mainfrom
codex/native-collapse
Draft

mdo wants to merge 1 commit into
mainfrom
codex/native-collapse

Conversation

@mdo

@mdo mdo commented Nov 22, 2026

Copy link
Copy Markdown
Member
  • Replace the .show implementation with <details class="collapse"> and a <summary>. Visible summaries work without JavaScript.
  • Keep external and shared triggers, data-bs-parent groups, hash links, and the Collapse methods and events.
  • Animate horizontal panels with a grid track. Keep the content visible until closing ends and update the external trigger state at the start.
  • Migrate the docs, examples, and tests. Add a visual fixture for external triggers and native grouping.
  • Horizontal opening and closing work in Chromium, Firefox, and WebKit in LTR and RTL. WebKit can snap the vertical layout closed. Firefox opens and closes vertical panels instantly.
  • BundleWatch exceeds three JavaScript size limits.

Use a details element with a summary to open and close Collapse panels.
Keep external controls, groups, hash links, and the JavaScript API.

Animate horizontal panels with a grid track. Keep the content visible
until the close transition ends. Update examples and tests for the new
markup.
@netlify

netlify Bot commented Nov 22, 2026

Copy link
Copy Markdown

✅ Deploy Preview for twbs-bootstrap ready!

Name Link
🔨 Latest commit 038cfdc
🔍 Latest deploy log https://app.netlify.com/projects/twbs-bootstrap/deploys/6b0367960fef5970c24c189f
😎 Deploy Preview https://deploy-preview-43443--twbs-bootstrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@julien-deramond julien-deramond added v6 v6, the main branch css Sass sources or compiled CSS docs Documentation site and its content js JavaScript or TypeScript sources and plugins labels Nov 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css Sass sources or compiled CSS docs Documentation site and its content js JavaScript or TypeScript sources and plugins v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants