-
Notifications
You must be signed in to change notification settings - Fork 638
Set embedded app theme to match the site theme #1387
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
Conversation
sfc-gh-tteixeira
left a comment
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.
Approved after comments addressed
|
I think I followed your suggestions. I couldn't get rid of the function entirely, because server-side rendering broke. So, re-requested a review to make sure it satisfies you requests. |
|
Actually, the breaks a portion. Apps from docstrings only load in light mode. I'll update it again. |
95fdbe4 to
a2a8a40
Compare
|
I changed it to use a theme context to so that API pages would load with the correct theme. The first fix had the following problem:
The new fix will load the right theme for the API apps, even if the theme was changed sometime after the first load. |
sfc-gh-tteixeira
left a comment
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.
I just pushed a change to avoid duplicating code.
Please double-check it and LMK if I broke anything, though!
|
LGTM! Okay to merge, @sfc-gh-tteixeira? Edit: I see you re-approved, so I think so! |
📚 Context
This PR passed the currently selected theme to all Community Cloud embedded apps as a query parameter to make them match the site theme.
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.