content: keyboard page needs on-screen keyboard layout guidance, and lifecycle samples read the wrong property
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 86/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- documentation
Direzione di ricerca
Inizia da docs/developing/keyboard.mdx e confrontalo con la relativa versione versionata in versioned_docs/version-v8/developing/keyboard.mdx, vicino a Keyboard Lifecycle Events. Aggiungi indicazioni sul comportamento del viewport visuale rispetto al viewport di layout, su interactive-widget=resizes-content, su 100dvh e sulle modalità di ridimensionamento di Capacitor, usando #26702 come contesto. Il lavoro è completato quando entrambe le versioni spiegano accuratamente il comportamento e le alternative.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
URL
https://ionicframework.com/docs/developing/keyboard
Issue Description
The page covers inputmode, enterkeyhint, dark mode, the accessory bar and lifecycle events, but never says what the keyboard does to the viewport. In a mobile browser or PWA, Chrome and current Firefox shrink the visual viewport and leave the layout viewport at full height, so anything anchored to the bottom of the page stays where it was and the keyboard is drawn over it. This affects ion-fab, ion-footer and ion-tab-bar.
That is intended behavior, and refer to #26702 for the reasoning on why we do not resize the layout viewport by default. The problem is that the page never tells developers this is the model, nor how to opt into the alternative, so it keeps getting refiled: #7013 (2016), #26702 (2023), #29765 (2024). Three reports over eight years for behavior that one documented meta key configures.
Suggested addition, as a section near Keyboard Lifecycle Events:
- The keyboard shrinks the visual viewport, not the layout viewport, in browsers and PWAs, so bottom-anchored elements do not move.
- Apps that want the layout to move can add
interactive-widget=resizes-contentto the viewport meta tag, with the caveat that footers and tab bars then move above the keyboard too. Verified on Chrome 133 and Firefox 155. 100dvhdoes not account for the on-screen keyboard and is not an alternative. Worth saying outright, because it is the first thing people reach for.- Capacitor apps should use the Keyboard plugin's resize modes rather than the meta tag.
Files
docs/developing/keyboard.mdx(v9)versioned_docs/version-v8/developing/keyboard.mdx
- Lingua principale
- MDX
- Stelle
- 621
- Fork
- 3.2k
- Merge medio
- 1g 2h
- PR unite (30g)
- 86
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ionic-team/ionic-docs
-
content package: angular
Difficoltà 2/5 Mezza giornata Idoneità per principianti 78/100
ionic-team/ionic-docs#4702 ·
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
ionic-team/ionic-docs#4546 ·
-
content: broken link Apertacontent
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ionic-team/ionic-docs#4381 · 2 commenti ·
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
ionic-team/ionic-docs#3639 ·
-
content package: angular
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ionic-team/ionic-docs#3583 ·
Tutte le issue di ionic-team/ionic-docs
Issue simili
-
user-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Kong/developer.konghq.com#7316 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HarperFast/skills#96 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Apertacategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100