Skip to content

refactor(web): centralize <style> injection via injectStyleOnce + global tokens#267

Merged
hryhoriiK97 merged 1 commit intomainfrom
refactor/web-hoist-selection-style
Apr 24, 2026
Merged

refactor(web): centralize <style> injection via injectStyleOnce + global tokens#267
hryhoriiK97 merged 1 commit intomainfrom
refactor/web-hoist-selection-style

Conversation

@hryhoriiK97
Copy link
Copy Markdown
Collaborator

What/Why?

Hoists the <style> tag for selectionColor to module-level via a tiny injectStyleOnce(id, css) helper — N mounted components no longer produce N identical <style> tags. Adds a globalStyles registry with token constants for the wrapper class and CSS variable, and swaps the non-standard data-* attribute for className.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes

@hryhoriiK97 hryhoriiK97 merged commit 4080a33 into main Apr 24, 2026
5 checks passed
@hryhoriiK97 hryhoriiK97 deleted the refactor/web-hoist-selection-style branch April 24, 2026 20:03
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