Skip to content

fix(catalog): hide body if dsd-pending#5812

Merged
copybara-service[bot] merged 1 commit intomaterial-components:mainfrom
agperegrina:main
Jun 2, 2025
Merged

fix(catalog): hide body if dsd-pending#5812
copybara-service[bot] merged 1 commit intomaterial-components:mainfrom
agperegrina:main

Conversation

@agperegrina
Copy link
Copy Markdown

@agperegrina agperegrina commented Jun 1, 2025

Description

Incorporating a CSS rule to mitigate First Contentful Paint (FCP) layout shifts on non-DSD-native user agents. This explicitly leverages the dsd-pending attribute, which is added in the default template and subsequently removed post-DOM hydration by the src/ssr-utils/dsd-polyfill.ts. This ensures a controlled initial rendering state, preventing unstyled or unhydrated content from momentarily disrupting visual stability.

@asyncliz asyncliz changed the title feat(catalog): hide body if dsd-pending fix(catalog): hide body if dsd-pending Jun 2, 2025
@asyncliz asyncliz added the preview-catalog Will run the github action to deploy a preview of the catalog label Jun 2, 2025
Copy link
Copy Markdown
Collaborator

@asyncliz asyncliz left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@copybara-service copybara-service bot merged commit 3e9cbf6 into material-components:main Jun 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-catalog Will run the github action to deploy a preview of the catalog Ready for Google

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants