-
Notifications
You must be signed in to change notification settings - Fork 316
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: add dark-theme to iframes that has srcDoc attribute #112
Conversation
@@ -64,4 +98,4 @@ const config = { | |||
}, | |||
}; | |||
|
|||
export default config; | |||
export default config; |
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.
nit: extra line at end
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 tried these out locally and both Course Handouts and Course Announcements seem to be working fine in dark mode for me!
Can you also add a changelog entry? |
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.
Some small nits, please squash before/at merge. Good work on this.
82eee01
to
0aebd87
Compare
Course Handouts and Updates Fixes:
The Course handouts and Updates are rendered via Iframe in Learning MFE. The Iframes are using
srcDoc
attribute so we can append dark colors to it when User has enabled dark theme.Steps:
3.2.2
(https://www.npmjs.com/package/@edly-io/indigo-frontend-component-header/v/3.2.2)env.config.jsx
to add dark-theme in iframes (if enabled) when page is loaded.This PR covers updating
env.config.jsx
. And header package is already done.Closes (part 2-i of) #107