Skip to content

Add addStyle, addStyleSheet. #858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged

Conversation

dmjio
Copy link
Owner

@dmjio dmjio commented Apr 8, 2025

Users have requested to be able to set CSS styles dynamically (in <head>) on initial application load.

  • This patch adds two functions to append either raw <style> /* css goes here */</style> or a <link href="/path/to/style.css" rel="stylesheet"> to <head>.
  • The TodoMVC example has been adjusted to use this with the saddle workflow
  • Re-export top-level

Users have requested to be able to set CSS styles dynamically (in
<head>) on initial application load.

This patch adds two functions to append either raw <style> or a <link>
with a URL to a hosted CSS file in <head>.

The TodoMVC example has been adjusted to use this with the saddle workflow.
@dmjio dmjio merged commit c345288 into master Apr 8, 2025
3 checks passed
@dmjio dmjio deleted the initial-action-set-css-link-syles branch April 8, 2025 02:23
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