Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/accordion/accordion.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/alert/alert.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/breadcrumbs/breadcrumbs.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/button/button.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/card/card.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/checkbox/checkbox.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/chip/chip.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/inputs/inputs.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/item-list/item-list.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/modal/modal.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/popover/popover.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/radio/radio.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/range/range.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/reorder/reorder.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/searchbar/searchbar.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/segment/segment.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/select/select.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/tabs/tabs.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/toast/toast.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/toggle/toggle.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/index/pages/toolbar/toolbar.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content [fullscreen]="true" color="light">
<ion-list [inset]="true">
<ion-item-group class="header-item-group">
<ion-item-group class="item-group-header">
<ion-item>
<ion-label>
<ion-icon name="logo-ionic" style="background: linear-gradient(#489bfd, #2b77f4)"></ion-icon>
Expand Down
15 changes: 15 additions & 0 deletions docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ title: Migration

# Migration

## Rename `.header-item-group` to `.item-group-header`

The class for an `ion-item-group` used as a section header has been renamed for consistency with the element it modifies. Replace every occurrence of `.header-item-group` in application templates and styles.

```diff
- <ion-item-group class="header-item-group">
+ <ion-item-group class="item-group-header">
...
</ion-item-group>
```

The old class is no longer styled by the theme. This rename applies to markup shared with `@rdlabo/ionic-theme-md3` as well.

## Selective component imports

For gradual migration, you can selectively apply the iOS26 theme by importing individual components instead of the full theme file.

```css
Expand Down
4 changes: 2 additions & 2 deletions src/styles/components/ion-list.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use '../utils/theme-list-inset';
@use '../utils/structured-list';

ion-list.ios:not(.ios26-disabled) {
ion-item {
Expand All @@ -8,7 +8,7 @@ ion-list.ios:not(.ios26-disabled) {
}

ion-list.list-inset.ios:not(.ios26-disabled) {
@include theme-list-inset.ion-list-inset(20px);
@include structured-list.layout(20px);

ion-radio-group,
ion-reorder-group {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/md-ion-list-inset.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use 'utils/theme-list-inset';
@use 'utils/structured-list';

ion-list.list-inset.md {
@include theme-list-inset.ion-list-inset(8px);
@include structured-list.layout(8px);

ion-item-group > ion-item {
& > ion-input[labelplacement='floating'] {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin ion-list-inset($note-inset) {
@mixin layout($outer-note-inset) {
background: transparent;

ion-list-header {
Expand All @@ -21,8 +21,7 @@
}
}

// TODO: これはUtility Classにマイグレートする必要があります
ion-item-group.header-item-group {
ion-item-group.item-group-header {
& > ion-item > ion-label {
width: 100%;
text-align: center;
Expand Down Expand Up @@ -120,6 +119,6 @@
color: var(--ion-color-medium-tint);
font-size: 0.9rem;
display: block;
margin: 8px calc(var(--ion-safe-area-right, 0) + $note-inset) 8px calc(var(--ion-safe-area-left, 0) + $note-inset);
margin: 8px calc(var(--ion-safe-area-right, 0) + $outer-note-inset) 8px calc(var(--ion-safe-area-left, 0) + $outer-note-inset);
}
}
Loading