Skip to content

Add addStyle, addStyleSheet.#858

Merged
dmjio merged 1 commit into
masterfrom
initial-action-set-css-link-syles
Apr 8, 2025
Merged

Add addStyle, addStyleSheet.#858
dmjio merged 1 commit into
masterfrom
initial-action-set-css-link-syles

Conversation

@dmjio
Copy link
Copy Markdown
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