Skip to content

feat(icon): add font icon support to ion-icon#31284

Open
brandyscarney wants to merge 6 commits into
nextfrom
FW-7618
Open

feat(icon): add font icon support to ion-icon#31284
brandyscarney wants to merge 6 commits into
nextfrom
FW-7618

Conversation

@brandyscarney

@brandyscarney brandyscarney commented Jul 22, 2026

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Ionicons added support for font icons in ion-icon, but Ionic Framework does not support it.

What is the new behavior?

  • Adds the Ionicons dev build with font icon support
  • Adds a font test to the icon folder to verify font icon support works in Ionic Framework
  • Updates the components that style ion-icon using width/height to use font-size so it will style them for both SVGs and font icons.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Preview: icon: font
Dev build: 8.8.16-dev.11784841344.1aa1a41c

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment Jul 23, 2026 9:22pm

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Jul 22, 2026
@brandyscarney brandyscarney changed the title feat(icon): support font icons with ion-icon feat(icon): add font icon support to ion-icon Jul 22, 2026
.input-clear-icon ion-icon {
width: 100%;
height: 100%;
font-size: globals.$ion-font-size-400;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is set to 400 because it renders at 16px with width/height set to 100%

}

/* Large */
:host(.searchbar-size-large) .searchbar-search-icon,

@brandyscarney brandyscarney Jul 23, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I combined these rules because the .searchbar-search-icon needs font-size too.

@brandyscarney
brandyscarney marked this pull request as ready for review July 23, 2026 21:30
@brandyscarney
brandyscarney requested a review from a team as a code owner July 23, 2026 21:30

::slotted(*) ion-icon[slot="icon-only"] {
font-size: globals.$ion-font-size-600;
font-size: globals.$ion-font-size-500;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was not using the correct value before. The change to other components to use font-size with ion-icon exposed this as the wrong size.

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.

1 participant