-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat(dark-theme): import dark theme from core #35
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -17,7 +17,7 @@ | |||
"generate": "stencil generate" | |||
}, | |||
"dependencies": { | |||
"@ionic/core": "^7.5.0" | |||
"@ionic/core": "7.6.2-dev.11704729332.13b412c8" |
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.
The dev build is needed in order to import the dark theme files. This will be reverted once the feature is released. Jira ticket has been created.
@@ -9,7 +9,7 @@ export class AppHome { | |||
components = getComponents(); | |||
|
|||
toggleDarkMode = () => { | |||
document.body.classList.toggle('dark'); | |||
document.documentElement.classList.toggle('ion-theme-dark'); |
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.
The dark.class
stylesheet expects .ion-theme-dark
to be set on the root.
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.
Looks good 👍 Don't forget to update the PR description now that you've removed the custom styling entirely.
Issue URL: internal
What is the current behavior?
Docs demo is setting the Ionic dark theme through a file within the project.
What is the new behavior?
Docs demo is setting the Ionic dark theme through
@ionic/core
.I removed the custom styling since the title has a color of
#fff
with or without it.Does this introduce a breaking change?
Other information
N/A