Skip to content

fix(components/molecule/accordion): fix accordion in iOS Safari 26.4#2969

Merged
stivaliserna merged 2 commits into
masterfrom
fix-accordion-ios
Apr 16, 2026
Merged

fix(components/molecule/accordion): fix accordion in iOS Safari 26.4#2969
stivaliserna merged 2 commits into
masterfrom
fix-accordion-ios

Conversation

@stivaliserna
Copy link
Copy Markdown
Member

Category/Component

❓ Ask

Description, Motivation and Context

Fix accordion rendering issues in iOS Safari ≥26.4 by replacing max-height animations with a grid-based approach (grid-template-rows: 0fr → 1fr).

This avoids known WebKit repaint bugs with overflow: hidden inside scroll containers and ensures correct layout flow (siblings are pushed down properly).

Adds required constraints (min-height: 0 and overflow: hidden) to allow proper collapsing behavior.

Types of changes

  • 🪲 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧾 Documentation
  • 📷 Demo
  • 🧪 Test
  • 🧠 Refactor
  • 💄 Styles
  • 🛠️ Tool

Screenshots - Animations

Before

safari-bug-1.mov
safari-bug-2.mov
safari-bug-3.mov

After

safari-fix-1.mov
safari-fix-2.mov
safari-fix-3.mov

@github-actions
Copy link
Copy Markdown

STATEMENTS BRANCHES FUNCTIONS LINES
≍ 0= ≍ 0.04↑ ≍ 0= ≍ 0=
% 76.58 63.48 68.31 78.13
ABS 3507 / 4579 2128 / 3352 690 / 1010 3324 / 4254

Copy link
Copy Markdown
Contributor

@hpintos hpintos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@github-actions
Copy link
Copy Markdown

STATEMENTS BRANCHES FUNCTIONS LINES
≍ 0= ≍ 0.08↑ ≍ 0= ≍ 0=
% 76.58 63.52 68.31 78.13
ABS 3507 / 4579 2132 / 3356 690 / 1010 3324 / 4254

@andresin87
Copy link
Copy Markdown
Member

super!

@stivaliserna stivaliserna merged commit 42752f9 into master Apr 16, 2026
7 checks passed
@stivaliserna stivaliserna deleted the fix-accordion-ios branch April 16, 2026 14:26
stivaliserna added a commit that referenced this pull request Apr 16, 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.

5 participants