@ionic/core 8.8.4-dev.11777064748.1e6da1cd → 8.8.4-dev.11777067325.14ed5f47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -717,6 +717,8 @@ button {
717
717
  ::slotted(ion-icon) {
718
718
  width: var(--token-scale-400, 16px);
719
719
  height: var(--token-scale-400, 16px);
720
+ font-size: var(--token-scale-400, 16px);
721
+ line-height: 1;
720
722
  }
721
723
 
722
724
  .select-icon {
@@ -5,6 +5,7 @@ import caretDownRegular from "@phosphor-icons/core/assets/regular/caret-down.svg
5
5
  import { Build, Host, h, forceUpdate } from "@stencil/core";
6
6
  import { compareOptions, createNotchController, isOptionSelected, checkInvalidState } from "../../utils/forms/index";
7
7
  import { focusVisibleElement, renderHiddenInput, inheritAttributes } from "../../utils/helpers";
8
+ import { renderIcon } from "../../utils/icon";
8
9
  import { printIonWarning } from "../../utils/logging/index";
9
10
  import { actionSheetController, alertController, popoverController, modalController } from "../../utils/overlays";
10
11
  import { isRTL } from "../../utils/rtl/index";
@@ -753,12 +754,12 @@ export class Select {
753
754
  * next to the select text.
754
755
  */
755
756
  renderSelectIcon() {
757
+ const theme = getIonTheme(this);
756
758
  const { isExpanded, selectExpandedIcon, selectCollapsedIcon } = this;
757
- let icon = selectCollapsedIcon;
758
- if (isExpanded) {
759
- icon = selectExpandedIcon;
760
- }
761
- return h("ion-icon", { class: "select-icon", part: "icon", "aria-hidden": "true", icon: icon });
759
+ const icon = isExpanded ? selectExpandedIcon : selectCollapsedIcon;
760
+ // Use the font glyph for the default ionic icon; null forces SVG for custom icons.
761
+ const ionicIconClass = icon === caretDownRegular ? 'ph-caret-down' : null;
762
+ return renderIcon(theme, ionicIconClass, icon, { class: { 'select-icon': true }, part: 'icon' });
762
763
  }
763
764
  get ariaLabel() {
764
765
  var _a;
@@ -917,7 +918,7 @@ export class Select {
917
918
  * TODO(FW-5592): Remove hasStartEndSlots condition
918
919
  */
919
920
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
920
- return (h(Host, { key: 'd8f7abd11c8f6e5ebea306f69ed5ae5a115efa97', onClick: this.onClick, class: createColorClasses(this.color, {
921
+ return (h(Host, { key: 'adff24eefb2530bedad439d4fc487e8bc14ea6e9', onClick: this.onClick, class: createColorClasses(this.color, {
921
922
  [theme]: true,
922
923
  'in-item': inItem,
923
924
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -936,7 +937,7 @@ export class Select {
936
937
  [`select-shape-${shape}`]: shape !== undefined,
937
938
  [`select-label-placement-${labelPlacement}`]: true,
938
939
  [`select-size-${size}`]: size !== undefined,
939
- }) }, h("label", { key: '443499f6c4501df171d4f16756f2e55e57512c0c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, this.renderLabelContainer(), h("div", { key: '66e6cf63163b68b1ca85979e5c49a349632dfc54', class: "select-wrapper-inner", part: "inner" },
940
+ }) }, h("label", { key: 'ae2d8ab47f377909857ccd082e0f4aaa5504fa8b', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, this.renderLabelContainer(), h("div", { key: 'd908a934f21c145f178c3e39eb7ec076caec752a', class: "select-wrapper-inner", part: "inner" },
940
941
  /**
941
942
  * For the ionic theme, we render the outline container here
942
943
  * instead of higher up, so it can be positioned relative to
@@ -946,7 +947,7 @@ export class Select {
946
947
  * <label> element, ensuring that clicking the label text
947
948
  * focuses the select.
948
949
  */
949
- theme === 'ionic' && fill === 'outline' && h("div", { key: 'a9f7d6bde570f4e2261617cdc2529cd835297865', class: "select-outline" }), h("slot", { key: 'f5516f6749c85dc3ed8f9ee04e748f1aad0d815c', name: "start" }), h("div", { key: '86fa4152f415a5ab72ed1a95899212fc1914b81c', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '3333af6835b20a97450372ca78a4aa77adf39d1c', name: "end" }), shouldRenderInnerIcon && this.renderSelectIcon()), shouldRenderOuterIcon && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'e0e782845ed0c35c139dbddcc3f9880aec12cf58', class: "select-highlight" })), this.renderBottomContent()));
950
+ theme === 'ionic' && fill === 'outline' && h("div", { key: '039d4719fd7e9f63574f3f98680a4df1d2bb4991', class: "select-outline" }), h("slot", { key: 'd227aea2b1c9d8318b8ccabeb8aef3fab72fd108', name: "start" }), h("div", { key: '5dbb3fd5b5e1ba443fe7589fead79a1e4cb35042', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: 'abfe8949dfe755e5477b2578f1c97159568c3502', name: "end" }), shouldRenderInnerIcon && this.renderSelectIcon()), shouldRenderOuterIcon && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: '55dce3ef686cc1e6d9b049978e0a62dbead1a087', class: "select-highlight" })), this.renderBottomContent()));
950
951
  }
951
952
  static get is() { return "ion-select"; }
952
953
  static get encapsulation() { return "shadow"; }
@@ -464,6 +464,8 @@ input {
464
464
  .toggle-inner .toggle-switch-icon {
465
465
  width: var(--token-scale-400, 16px);
466
466
  height: var(--token-scale-400, 16px);
467
+ font-size: var(--token-scale-400, 16px);
468
+ line-height: 1;
467
469
  }
468
470
 
469
471
  /**
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-04-24T21:08:18",
2
+ "timestamp": "2026-04-24T21:51:12",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.43.0",
@@ -38973,8 +38973,7 @@
38973
38973
  "ion-action-sheet",
38974
38974
  "ion-alert",
38975
38975
  "ion-select-modal",
38976
- "ion-modal",
38977
- "ion-icon"
38976
+ "ion-modal"
38978
38977
  ],
38979
38978
  "dependencyGraph": {
38980
38979
  "ion-select": [
@@ -38983,8 +38982,7 @@
38983
38982
  "ion-action-sheet",
38984
38983
  "ion-alert",
38985
38984
  "ion-select-modal",
38986
- "ion-modal",
38987
- "ion-icon"
38985
+ "ion-modal"
38988
38986
  ],
38989
38987
  "ion-select-popover": [
38990
38988
  "ion-item",