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(badge): add small/default size for ionic theme #29526

Merged
merged 10 commits into from
May 22, 2024
Merged

feat(badge): add small/default size for ionic theme #29526

merged 10 commits into from
May 22, 2024

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented May 21, 2024

Issue number: internal


What is the current behavior?

Badge does not have a size prop.

What is the new behavior?

  • Added the size prop, this can only be used by the ionic theme
  • Added tests

Does this introduce a breaking change?

  • Yes
  • No

Other information

Preview

Copy link

vercel bot commented May 21, 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 May 22, 2024 6:02pm

@github-actions github-actions bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package labels May 21, 2024
@thetaPC thetaPC marked this pull request as ready for review May 21, 2024 15:04
@thetaPC thetaPC requested a review from a team as a code owner May 21, 2024 15:04
@thetaPC
Copy link
Contributor Author

thetaPC commented May 21, 2024

@BenOsodrac please check the badge again, I added some styles that I missed the first time.

@@ -0,0 +1,29 @@
@use "../../foundations/ionic.vars.scss" as tokens;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should instead change this to @use "../../themes/ionic/ionic.globals.scss" as globals;. This new approach was suggested after the creation of the ionic.globals.scss partial, that already forwards all the necessary tokens for Ionic Theme

Copy link
Contributor

@BenOsodrac BenOsodrac May 21, 2024

Choose a reason for hiding this comment

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

@thetaPC thetaPC merged commit 5c0b5c3 into next May 22, 2024
46 checks passed
@thetaPC thetaPC deleted the ROU-10725 branch May 22, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants