-
Notifications
You must be signed in to change notification settings - Fork 787
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(runtime): place scoped component styles after preconnect links but before custom styles #5938
Conversation
…t before custom styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this out with the failing Framework test and still having the same issue. If there are no preconnect links, can we insert the styles where they were going before (i.e. before the first link
tag)?
Good catch @tanner-reits , I totally missed that use case but added a change with a test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in the Framework test case 👍
This patch has been published in Stencil |
What is the current behavior?
This is an enhancement to a fix we made in in #5926 which caused our Nightly build to fail due to the inability to place custom styles in the HTML template as all component styles were injected last in the
<head />
tag.STENCIL-1372
What is the new behavior?
Place scoped component styles after existing preconnect links but allow custom styles to be set at the end of the
<head />
tag.Documentation
I will raise a separate PR to the docs page mentioning this behavior.
Does this introduce a breaking change?
Testing
Enhanced existing e2e test.
Other information
n/a