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
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"@capacitor/ios": "^8.0.0",
"@capacitor/preferences": "^8.0.0",
"@capacitor/splash-screen": "^8.0.0",
"@ionic/react": "^9.0.0",
"@ionic/react-router": "^9.0.0",
"@ionic/react": "9.0.12-dev.11794527713.1ebd1ea1",
"@ionic/react-router": "9.0.12-dev.11794527713.1ebd1ea1",
"@types/leaflet": "^1.9.17",
"@types/react-redux": "^7.1.34",
"date-fns": "^4.0.0",
Expand Down
16 changes: 9 additions & 7 deletions src/pages/SchedulePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,18 @@ const SchedulePage: React.FC<SchedulePageProps> = ({
</IonHeader>

<IonContent fullscreen={true}>
<IonHeader collapse="condense">
<IonHeader scrollEffect="condense">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With scrollEffect the condense header shows up on md now too, so the md Schedule page ends up with two search inputs, the always-visible searchbar under the large title and a second one behind the toolbar search icon. They each keep their own text but write the same filter, so if you type "ionic" in the content bar, open the toolbar search, type "angular" and tap Cancel, the content bar still says "ionic" while the list is filtered by "angular" and shows 0 sessions. Screen readers also get two inputs that are both named "search text".

Could we keep that second toolbar iOS-only? This leaves md with just the toolbar search, and the large title still condenses on scroll in both modes:

          {ios && (
            <IonToolbar>
              <IonSearchbar
                placeholder="Search"
                onIonInput={(e: CustomEvent) => setSearchText(e.detail.value)}
              ></IonSearchbar>
            </IonToolbar>
          )}

You won't see this on the current v10 build yet, because the header's large-title check looks for a size attribute and React sets size as a property, so the condense header stays hidden in React for now. That's a framework bug though, so nothing for this PR to fix there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 584e4dd.

<IonToolbar>
<IonTitle size="large">Schedule</IonTitle>
</IonToolbar>
<IonToolbar>
<IonSearchbar
placeholder="Search"
onIonInput={(e: CustomEvent) => setSearchText(e.detail.value)}
></IonSearchbar>
</IonToolbar>
{ios && (
<IonToolbar>
<IonSearchbar
placeholder="Search"
onIonInput={(e: CustomEvent) => setSearchText(e.detail.value)}
></IonSearchbar>
</IonToolbar>
)}
</IonHeader>

<IonRefresher
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SpeakerList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const SpeakerList: React.FC<SpeakerListProps> = ({
</IonHeader>

<IonContent fullscreen={true}>
<IonHeader collapse="condense">
<IonHeader scrollEffect="condense">
<IonToolbar>
<IonTitle size="large">Speakers</IonTitle>
</IonToolbar>
Expand Down