Skip to content

docs(plugins): use the typed PicoTheme constant in the theme-switch snippet#81

Merged
joaomdsg merged 1 commit into
mainfrom
docs/typed-helpers
May 31, 2026
Merged

docs(plugins): use the typed PicoTheme constant in the theme-switch snippet#81
joaomdsg merged 1 commit into
mainfrom
docs/typed-helpers

Conversation

@joaomdsg

Copy link
Copy Markdown
Member

Swap the hand-built ThemeRef()+" = 'blue'" string for the printf-style h.DataOnClick with the typed picocss.PicoThemeBlue constant, matching the canonical pattern in internal/examples/picocss.

A full sweep of all 19 docs pages (one auditor per file, each finding verified) found no other places presenting a raw-string form where a typed helper/constant is the better showcase — the rest already use the typed API or intentionally teach the underlying primitive.

Verified the snippet compiles and renders data-on:click="$_picoTheme = "blue"", equivalent to the original.

…nippet

Swap the hand-built ThemeRef()+" = 'blue'" string for the printf-style
h.DataOnClick with the typed picocss.PicoThemeBlue constant, matching the
canonical pattern in internal/examples/picocss. A full sweep of the docs
found no other places bypassing Via's typed helpers.
@joaomdsg
joaomdsg merged commit 9b5c87e into main May 31, 2026
6 checks passed
@joaomdsg
joaomdsg deleted the docs/typed-helpers branch May 31, 2026 23:21
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