Skip to content

Conversation

Rich-Harris
Copy link
Member

At present we have a bunch of .text :where(blah) {...} global selectors in a text.css file that always gets loaded, even for the pages that don't need it. Much better to put it in a <Text> component that can declare these styles more idiomatically and ensure they're only loaded when needed.

In future this component could also be used to orchestrate things like copy-to-clipboard and toggling <details> elements en masse, with less hackery than we currently employ

Copy link

vercel bot commented Sep 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
omnisite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 29, 2024 5:13pm

@Rich-Harris Rich-Harris merged commit c9a046f into main Sep 29, 2024
3 checks passed
@Rich-Harris Rich-Harris deleted the text-component branch September 29, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant