Skip to content

Commit 6b82ecc

Browse files
fix: remove empty :global selector that breaks Lightning CSS
Moved the sr-only comment from above the selector to inside it to prevent Sass from generating an empty `:global {}` block in the CSS modules output. This fixes build failures when using Rolldown Vite with Lightning CSS minification, which throws "SyntaxError: Invalid empty selector". Fixes #5989 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent be38873 commit 6b82ecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stylesheets/datepicker.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
@use "variables" as *;
33
@use "mixins" as *;
44

5-
/* sr-only utility class for accessibility */
65
.react-datepicker__sr-only {
6+
// sr-only utility class for accessibility
77
position: absolute;
88
width: 1px;
99
height: 1px;

0 commit comments

Comments
 (0)