Repository navigation
chore: replace the deprecated collapse with scrollEffect - #201
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ShaneK
left a comment
There was a problem hiding this comment.
Looks good to me! Just left one comment about search on the md Schedule page.
|
|
||
| <IonContent fullscreen={true}> | ||
| <IonHeader collapse="condense"> | ||
| <IonHeader scrollEffect="condense"> |
There was a problem hiding this comment.
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.
Issue URL: N/A
What is the current behavior?
The Schedule and Speakers pages use
collapse="condense"on their large title headers, which Ionic 10 deprecates and logs a warning for.What is the new behavior?
scrollEffect="condense"9.0.12-dev.11794527713.1ebd1ea1until Ionic 10 ships, since Ionic 9 has noscrollEffectDoes this introduce a breaking change?
Other information
Matches the starters (ionic-team/starters#1936) and the v10 docs (ionic-team/ionic-docs#4845).