Skip to content
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

fix(engine): avoid non-string scope tokens #4519

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

nolanlawson
Copy link
Collaborator

Details

Fixes validation of attribute names / static content HTML for dynamically-set stylesheet tokens.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🔬 Yes, it does include an observable change.

Setting template.stylesheetToken now requires a string value.

GUS work item

W-16614556

@nolanlawson nolanlawson requested a review from a team as a code owner September 3, 2024 21:48
'stylesheets',
'renderMode',
'legacyStylesheetToken',
] as const;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just adds a warning in dev mode for setting legacyStylesheetToken, which we may as well do since it makes the test more consistent.

@nolanlawson nolanlawson changed the title fix(engine-dom): avoid non-string scope tokens fix(engine): avoid non-string scope tokens Sep 3, 2024
@nolanlawson nolanlawson merged commit 5355a9c into master Sep 3, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/stylesheet-token-fix branch September 3, 2024 23:49
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.

2 participants