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: rename dark/high-contrast themes to palettes #29149

Merged
merged 8 commits into from Mar 18, 2024

Conversation

sean-perkins
Copy link
Contributor

@sean-perkins sean-perkins commented Mar 13, 2024

Issue number: Internal


What is the current behavior?

Ionic Framework currently plans to offer dark and high contrast "themes" in v8. However this naming nomenclature conflicts with a significant new feature that the team is working on towards v9+.

What is the new behavior?

  • Migrates previous dark and high contrast "themes" to "palettes"
  • Updates test infrastructure to import from the new stylesheet locations

Does this introduce a breaking change?

  • Yes
  • No

Developers that have updated to the Ionic v8 beta and have implemented the dark and high contrast themes, will need to update the import path:

-@import '@ionic/angular/css/themes/dark.always.css';
+@import '@ionic/angular/css/palettes/dark.always.css';

Other information

Blocked by: #29148. Review that first.

Documentation PR: ionic-team/ionic-docs#3521

@github-actions github-actions bot added the package: core @ionic/core package label Mar 13, 2024
@sean-perkins sean-perkins marked this pull request as ready for review March 13, 2024 03:47
@sean-perkins sean-perkins requested review from brandyscarney and a team as code owners March 13, 2024 03:47
core/src/themes/test/colors/index.html Outdated Show resolved Hide resolved
core/src/themes/test/colors/index.html Show resolved Hide resolved
Base automatically changed from sp/test-palettes to feature-8.0 March 14, 2024 14:29
sean-perkins added a commit that referenced this pull request Mar 14, 2024
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Migrates the test infrastructure to use `palettes` instead of `themes`

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

This **does not** change where the light/dark/high contrast styles live
or how they are consumed in the test infra. That work is done here:
#29149

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
Copy link
Contributor

@amandaejohnston amandaejohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once Shawn's feedback is addressed 👍

@mapsandapps mapsandapps self-requested a review March 14, 2024 20:32
@sean-perkins sean-perkins merged commit 761e1b4 into feature-8.0 Mar 18, 2024
42 checks passed
@sean-perkins sean-perkins deleted the sp/theme-palettes branch March 18, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants