@rdlabo/ionic-theme-ios27 1.0.2 → 1.0.3-beta.pr198.sha4493fd0903d8

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.
@@ -101,7 +101,7 @@ Add `.segment-style-glass` to give a segment the same glass surface and selected
101
101
  </ion-segment>
102
102
  ```
103
103
 
104
- For colored segments, use Ionic's `color` property (for example, `color="primary"` or `color="secondary"`). The selected surface uses the palette's base color and the selected label uses its contrast color. The optional moving glass inherits the same surface color; custom Ionic palettes work without additional registration.
104
+ For colored segments, use Ionic's `color` property (for example, `color="primary"` or `color="secondary"`). Ionic uses the palette's base color for the softly tinted track while keeping the selected surface and labels neutral. A surrounding colored toolbar only supplies colors when the segment has no color of its own. The optional moving glass inherits the selected surface color, and custom Ionic palettes work without additional registration.
105
105
 
106
106
  Add `.segment-expand` when segment buttons should divide the available width evenly. The class also changes the Liquid Glass effect sizing when `registerSegmentEffect` is used.
107
107
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-theme-ios27",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.3-beta.pr198.sha4493fd0903d8",
5
5
  "description": "iOS27 Theme for Ionic Framework",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -82,8 +82,12 @@ ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled) {
82
82
  }
83
83
  }
84
84
 
85
- ion-segment-button:is(.in-toolbar-color, .in-segment-color)::part(indicator-background) {
86
- // Ionic sets a direct background for color contexts, bypassing --indicator-color.
85
+ ion-segment-button.in-segment-color::part(indicator-background) {
86
+ // Ionic sets a direct background for segment color contexts, bypassing --indicator-color.
87
+ background: var(--indicator-color);
88
+ }
89
+
90
+ ion-segment-button.in-toolbar-color:not(.in-segment-color)::part(indicator-background) {
87
91
  background: var(--indicator-color);
88
92
  }
89
93
 
@@ -93,12 +97,6 @@ ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled) {
93
97
  }
94
98
  }
95
99
 
96
- &.in-toolbar-color:not(.in-segment-color) {
97
- ion-segment-button:not(.segment-button-checked)::part(native) {
98
- color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 1);
99
- }
100
- }
101
-
102
100
  // The indicator grows independently; the label has no additional scale.
103
101
  &:not(.ios27-enable-gesture, .segment-disabled):is(.segment-activated, :has(ion-segment-button:is(:active, .ion-activated))) {
104
102
  ion-segment-button.segment-button-checked:not(.segment-button-disabled)::part(indicator-background) {
@@ -201,7 +199,8 @@ ion-segment-button.ios:not(.ios-theme-disabled, .ios26-disabled) {
201
199
  :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled) ion-segment-button) {
202
200
  --indicator-color: var(--ion-background-color, #fff);
203
201
  }
204
- :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled).ion-color ion-segment-button.in-segment-color) {
205
- --indicator-color: var(--ion-color-base);
206
- --color-checked: var(--ion-color-contrast);
202
+ :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled) ion-segment-button.in-toolbar-color:not(.in-segment-color)) {
203
+ // Match Ionic's colored-toolbar contract while preserving its public
204
+ // toolbar and segment-button customization properties.
205
+ --indicator-color: var(--ion-toolbar-segment-indicator-color, var(--ion-color-contrast));
207
206
  }
@@ -32,7 +32,10 @@
32
32
  :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled)) {
33
33
  --background: rgba(var(--ion-color-medium-rgb, 152, 154, 162), 0.19);
34
34
  }
35
- :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled, .ion-color) ion-segment-button:not(.ion-color, .in-segment-color)) {
35
+ :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled) ion-segment-button) {
36
36
  --indicator-color: color-mix(in srgb, rgb(var(--ion-color-medium-rgb, 152, 154, 162)) 59%, var(--ion-background-color, #000));
37
37
  }
38
+ :where(ion-segment.ios:not(.ios-theme-disabled, .ios26-disabled) ion-segment-button.in-toolbar-color:not(.in-segment-color)) {
39
+ --indicator-color: var(--ion-toolbar-segment-indicator-color, var(--ion-color-contrast));
40
+ }
38
41
  }