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

refactor(scss): properly prefix string imports #29987

Merged
merged 2 commits into from
Oct 31, 2024
Merged

Conversation

brandyscarney
Copy link
Member

Issue number: internal


What is the current behavior?

The mixins file is not using prefixing the string functions, resulting in the string function file needing to be imported to work in the *.common.scss files.

What is the new behavior?

Properly prefix the string function calls.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Steps to test:

  1. Switch to the next branch
  2. Navigate to the core directory in your terminal and run the local server
  3. Open all *.common.scss files that import the following line and remove it:
    @import "../../themes/functions.string";
  4. See the error in the terminal: $n: Invalid index 2 for a list with 1 elements.
  5. Switch to this branch, see the error is gone without the imports

Copy link

vercel bot commented Oct 31, 2024

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

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 5:26pm

@github-actions github-actions bot added the package: core @ionic/core package label Oct 31, 2024
@brandyscarney brandyscarney marked this pull request as ready for review October 31, 2024 16:37
@brandyscarney brandyscarney requested a review from a team as a code owner October 31, 2024 16:37
@brandyscarney brandyscarney changed the title fix(scss): properly prefix string imports refactor(scss): properly prefix string imports Oct 31, 2024
@brandyscarney brandyscarney merged commit ca091e2 into next Oct 31, 2024
47 checks passed
@brandyscarney brandyscarney deleted the fix-scss-imports branch October 31, 2024 18:16
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.

2 participants