-
Notifications
You must be signed in to change notification settings - Fork 329
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 notes and textbook page #115
Conversation
color: $dark; | ||
border-color: $primary; | ||
} | ||
.wrapper-course-material[aria-label="Course Material"] { |
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: any reason for moving it out of all body selectors?
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.
Yes, The wrapper-course-material
is available on all pages (instructors, teams, wiki, static-page). so, if there is notes page and textbook page, we have to add body.notes
for Notes page. For textbook page, there is no such class with body tag (it has <body classname="indigo-dark-theme lang_en ltc" />
these classes). So, to apply on textbook
page, I've made it generic and moved out of body classes. Also made it specific to tabs using the aria-label
attribute.
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.
please add a changelog entry
375cfb4
to
e7a49d1
Compare
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.
LGTM! I tested these changes locally and they seem to be working as expected.
This PR adds dark-theme to notes and textbook page
Before
1.Notes Page
2.Textbook Page
After
1.Notes Page
----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------2. Textbook page
[The white page of pdf is rendered via pdfViewer/Canvas. It cannot be converted to dark in dark-mode.]