-
Notifications
You must be signed in to change notification settings - Fork 76
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
Bug: flash of default styles due to Stencil bug with hydratedFlag #991
Comments
I think I may have found a temporary workaround for this. Basically, we can select elements that are
Further, this flash only happens when components contain a slot. If a component doesn't have a slot, it won't show anything until js runs anyway, where stencil's hydrated functionality will work fine. This makes the list smaller in our css. Elements with slots are:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
ionic-team/stencil#2989 looks like they are going to allow us to opt out of the default stencil hydrated style visibility. That would enable us to actually fix this. |
@paulcpederson Thanks for the update! Do you think you'll be able to take this on this current sprint? Otherwise, I'll unassign and label this as |
Blocked by #10310. |
Issue #10310 has been closed, this issue is ready for re-evaluation. |
Added a spike to determine if the migration from Stencil to Lumina mitigates the above, or if additional follow-up is needed. |
Summary
This bug is due to an issue with how Stencil applies CSS for the
hydratedFlag
config option: ionic-team/stencil#2245. This bug would be a workaround to temporarily fix the flashing while Stencil works on a more permanent solution.Actual Behavior
When loading the page and on subsequent reloads, a flash of default styling appears on components in certain scenarios.
Expected Behavior
The correct styling should appear without any flash of incorrect styling based on the supplied props.
Reproduction Steps
calcite-label
with ascale
set tos
orl
calcite-hydrated
attribute takes a second to apply before the correct font size is shown.Relevant Info
The text was updated successfully, but these errors were encountered: