Skip to content

[collapsible] data-starting-style is not properly applied at the opening animation #4915

@tomas-gerzicak

Description

@tomas-gerzicak

Bug report

Current behavior

Hi I think, that I found a bug in the current collapsible component, I need to apply the overflow-hidden class only during the opening animation, so for that I am using those data-starting-style and data-ending-style, unfortunately the data-starting-style is not being applied properly. I have a video demonstration down bellow and I also noticed this in the official docs. Can you confirm, if this is a bug?

Screen.Recording.2026-05-26.at.16.38.02.mp4

Expected behavior

The data-starting-style will be applied during the whole duration of the panel animation.

Reproducible example

You can just check your documentation page, it is clearly visible, that there is no data-starting-style applied.

The main issue is conditional overflow-hidden to be applied during the animations. In this example it is clearly visible, that the data-starting-style is not applied during the whole duration of animation.

Base UI version

v1.5.0

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

Which assistive tech are you using (if applicable)?

None

Additional context

Provide any additional context that might help us identify the problem and find a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: collapsibleChanges related to the collapsible component.type: expected behaviorThe current behavior is already the one expected.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions