Skip to content

Conversation

@thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Dec 15, 2025

Issue number: resolves #


What is the current behavior?

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

@vercel
Copy link

vercel bot commented Dec 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ionic-framework Ready Ready Preview, Comment Jan 14, 2026 0:59am

Copy link
Member

Choose a reason for hiding this comment

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

Do we need Sass variables for this? I feel like it just adds another layer when the CSS variables would do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created it so we don't have such long variables cluttering the base file. Thoughts?

};

type Components = {
IonChip?: {
Copy link
Member

Choose a reason for hiding this comment

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

Do you think we should keep these interfaces in the component's folder to keep it better organized? Or is this something we might move later and combine between components?

Comment on lines 95 to 96
paddingVertical: '6px',
paddingHorizontal: '12px',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
paddingVertical: '6px',
paddingHorizontal: '12px',
padding: {
vertical: '6px',
horizontal: '12px',
}

Would it not be cleaner to do it as objects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Looks good. We might want to move to top, end, start and bottom for all components for consistency but we can tackle that when we get there.

Copy link
Member

Choose a reason for hiding this comment

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

A lot of these values are hardcoded - why aren't we using the design tokens like this:

--ion-scaling-xxs
--ion-scaling-xs
--ion-scaling-sm
etc

},

avatar: {
size: `${24 / fontSizes.chipBase}em`,
Copy link
Member

Choose a reason for hiding this comment

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

These numbers seem made up - maybe we need to define these calculations better?

}

const fontSizes = {
chipBase: 14,
Copy link
Member

Choose a reason for hiding this comment

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

Why is the base 14 for Chip? Shouldn't all components have the same base size?

Copy link
Member

Choose a reason for hiding this comment

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

My comments on the md file apply here as well

@include mixins.border-radius(var(--border-radius));
@include mixins.margin(vars.$chip-margin);
@include mixins.padding(vars.$chip-padding-vertical, vars.$chip-padding-horizontal);
@include mixins.typography(vars.$chip-typography);
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 font family for chip on ionic-modular and this branch do not match when it comes to the ionic theme. The ionic theme uses ion-body-sm-medium to set the typography for chip. This variable includes font family with the value of -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol". This is exactly what is being rendered on this branch. However, the ionic-modular renders it with a value of var(--ion-font-family, inherit). Based on my investigation, ionic-modular and next are not loading the correct font family. This branch fixes it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These hue changes for the ionic theme are

  • based on the font-family rendering the correct value. More information can be reviewed in this comment.
  • ionic colors being added in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

size has been added to ios.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

size has been added to md.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We weren't testing the customization for ionic so I added a test for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because the shape default is now round instead of soft.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ionic wasn't testing for the disabled state so I added it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the state looks different based on hue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the state looks different based on hue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the hue default is now subtle instead of bold.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the hue default is now subtle instead of bold.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for the ionic theme are

  • based on the font-family rendering the correct value. More information can be reviewed in this comment.
  • ionic colors being added in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the hue default is now subtle instead of bold.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for the ionic theme are

  • based on the font-family rendering the correct value. More information can be reviewed in this comment.
  • ionic colors being added in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the hue default is now subtle instead of bold.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for the ionic theme are

  • based on the font-family rendering the correct value. More information can be reviewed in this comment.
  • ionic colors being added in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for md are happening because

  • the shape default is now round instead of soft.
  • the hue default is now subtle instead of bold.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes for ios are happening because

  • the shape default is now round instead of soft.
  • the hue default is now subtle instead of bold.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These hue changes for the ionic theme are based on the font-family rendering the correct value. More information can be reviewed in this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These hue changes for the ionic theme are based on the font-family rendering the correct value. More information can be reviewed in this comment.

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.

3 participants