base-ui
base-ui copied to clipboard
[collapsible] Layout shift when using CSS transitions and the `Panel` is initially open
only the one using CSS transitions is consistently flagged for CLS here
https://deploy-preview-577--base-ui.netlify.app/experiments/collapsible-cls
testing the /components/react-menu page:
master branch vs https://github.com/mui/base-ui/pull/577, there is basically no difference
The Demo collapsible uses CSS animations and doesn't get flagged for CLS
master
after changes
@michaldudak Do you still reproduce this on the Demo component's Collapsible? I don't get it even on master anymore, but using CSS transitions, the minimal example in experiments is quite consistent
No, it seems it somehow was fixed in the meantime. Lighthouse doesn't report layout shift problems anymore on master. There still is a layout shift when using transitions, but it's not flagged as an issue.