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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Start with [Installation](#installation). Pair this theme with [@rdlabo/ionic-th

<!-- rdlabo-docs-omit -->

- [Migration](./docs/migration.md) — changes required when updating theme markup.
- [Breaking changes](./docs/breaking.md) — changes required when upgrading major versions.

<!-- /rdlabo-docs-omit -->
Expand Down
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 @@ -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
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/alert/alert.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/breadcrumbs/breadcrumbs.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/button/button.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/card/card.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/checkbox/checkbox.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/chip/chip.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
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
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/inputs/inputs.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/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 @@ -16,7 +16,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 @@ -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
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/radio/radio.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/range/range.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/reorder/reorder.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/searchbar/searchbar.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/segment/segment.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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 @@ -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/tabs/tabs.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/toast/toast.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/toggle/toggle.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/toolbar/toolbar.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
18 changes: 18 additions & 0 deletions docs/migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
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-ios26` as well.
4 changes: 2 additions & 2 deletions src/styles/components/ion-list.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@use '../utils/theme-list-inset';
@use '../utils/structured-list';

ion-list.md:not(.md3-disabled):not(.list-inset) {
padding-top: 0;
padding-bottom: 0;
}

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

ion-item-group > ion-item {
--border-color: var(--ion-color-light, #fff);
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