Skip to content

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
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 <[email protected]>
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.

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
@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.

4 participants