Skip to content

Conversation

@chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Jun 14, 2025

Summary

Updates the documentation for CSS Modules to include information about using global styles with the :global() pseudo-class selector. The changes provide examples and explanations for combining local and global selectors, as well as nesting :global().

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings June 14, 2025 12:55
@netlify
Copy link

netlify bot commented Jun 14, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit de135df
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/684d71516b46280008817a97
😎 Deploy Preview https://deploy-preview-5420--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 75 (🟢 up 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the CSS Modules documentation to include guidance on using global styles with the :global() pseudo-class selector. Key changes include:

  • Added a new section on global styles in both Chinese and English documentation.
  • Provided examples demonstrating local versus global selectors.
  • Included a nested :global() usage example for scoped overrides.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
website/docs/zh/guide/styling/css-modules.mdx Added a "全局样式" section with examples on using :global() selectors.
website/docs/en/guide/styling/css-modules.mdx Added a "Global styles" section with corresponding examples.

@chenjiahan chenjiahan merged commit 074875f into main Jun 14, 2025
13 checks passed
@chenjiahan chenjiahan deleted the css_modules_global_0614 branch June 14, 2025 23:18
@chenjiahan chenjiahan mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant