Skip to content

Conversation

devongovett
Copy link
Member

Fixes #4158

This updates Lightning CSS to use the new [content-hash] feature contributed by @rubberpants from the Analytics team. This enables multiple versions of React Spectrum's CSS to coexist on the same page without conflicts. Rather than hashing only the file name (which is the same between RSP versions), this uses the file contents as the hash so that whenever the CSS changes the class names also change.

@rspbot
Copy link

rspbot commented Sep 12, 2024

@devongovett devongovett added small review Easy to review PR in sprint labels Sep 13, 2024
@devongovett devongovett merged commit 437b381 into main Sep 13, 2024
31 checks passed
@devongovett devongovett deleted the bump-lightningcss branch September 13, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in sprint small review Easy to review PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regenerate CSS hashes when css file contents change to support micro-frontend envs that can have multiple versions of ReactSpectrum on the page
4 participants