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: add dark-theme to iframes that has srcDoc attribute #112

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

hinakhadim
Copy link
Collaborator

@hinakhadim hinakhadim commented Dec 5, 2024

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:

This PR covers updating env.config.jsx. And header package is already done.

  • Before fix:
  • The White space
image
  • After fix:
image

Closes (part 2-i of) #107

@@ -64,4 +98,4 @@ const config = {
},
};

export default config;
export default config;
Copy link
Contributor

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

Copy link
Contributor

@Danyal-Faheem Danyal-Faheem left a 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!

@Danyal-Faheem
Copy link
Contributor

Can you also add a changelog entry?

Copy link
Contributor

@DawoudSheraz DawoudSheraz left a 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.

@hinakhadim hinakhadim force-pushed the fix/dark-theme-course-handouts branch from 82eee01 to 0aebd87 Compare December 6, 2024 06:52
@hinakhadim hinakhadim merged commit adb4fa4 into release Dec 6, 2024
1 check passed
@hinakhadim hinakhadim deleted the fix/dark-theme-course-handouts branch December 6, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants