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

feat(dark-theme): import dark theme from core #35

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Jan 10, 2024

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?

  • Yes
  • No

Other information

N/A

Copy link

vercel bot commented Jan 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 6:55pm

@thetaPC thetaPC requested review from a team and averyjohnston and removed request for a team January 10, 2024 20:22
@@ -17,7 +17,7 @@
"generate": "stencil generate"
},
"dependencies": {
"@ionic/core": "^7.5.0"
"@ionic/core": "7.6.2-dev.11704729332.13b412c8"
Copy link
Contributor Author

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');
Copy link
Contributor Author

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.

src/themes/dark.css Outdated Show resolved Hide resolved
Copy link
Contributor

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

@thetaPC thetaPC merged commit e220eb6 into v8-migration Jan 11, 2024
4 checks passed
@thetaPC thetaPC deleted the FW-5626 branch January 11, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants