DocsShell: o pager fixo cobre ~10% da tela de leitura no celular; precisa de variante inline
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 72/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- accessibility, frontend
Rechercherichtung
Start in DocsShell.svelte and read the mobile @media (max-width: 899.98px) rules for .ca-docs-pager and the main padding. Trace how pagerPlacement would be exposed and applied, then check the layout at 390px: inline mode should place the pager after the page content without a fixed overlay or extra bottom padding; bar mode should remain opt-in. The issue also calls for a layout test verifying text never intersects the pager while scrolling.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problema
Abaixo de 900px o DocsShell fixa o pager (Anterior / Próxima) como barra sobre a parte inferior da tela (DocsShell.svelte, @media (max-width: 899.98px): .ca-docs-pager { position: fixed; inset: auto 0 0 0 }). Em página de leitura isso significa uma faixa permanente sobre o texto que está sendo lido.
Medido (wiApi, @codeatlasdev/ui 4.6.0, iPhone 390x844):
- A barra cobre 52px +
--ca-safe-bottom(34px no iPhone com indicador de início) = até 86px de 844px (10% da tela) o tempo todo. - O fundo é
--ca-chrome-bga 72% (claro) / 85% (escuro): tabelas e blocos de código passam por baixo e aparecem como texto fantasma ("Campo / Tipo / Descrição" legível atrás de "Anterior / Próxima" na foto do dono do produto). - O espaço reservado no fim da página existe (
padding-bottomdespace-12 + touch-target + safe-bottom), então o último bloco não fica coberto no fim da rolagem; o problema é durante a leitura.
Comportamento esperado
Navegação entre páginas de documentação não toma área de leitura. O pager é o último bloco da página, como já é a partir de 900px.
Proposta
- Prop
pagercom variante (pagerPlacement="inline" | "bar"), padrãoinlineparaDocsShellde leitura;barfica opt-in para quem quiser a barra nativa. - Em
inline, semposition: fixed, sembackdrop-filter, sempadding-bottomextra nomain. - Teste de layout: em 390px, nenhum elemento de texto interseciona o pager em nenhuma posição de rolagem.
Regra geral
Um elemento fixo sobre conteúdo de leitura só existe se reservar sua área o tempo todo (como header sticky que empurra o conteúdo); chrome que sobrepõe texto não é aceitável para navegação secundária.
Workaround local: apps/docs/src/app.css (ca-ui-workaround(#N)).
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6
- Forks
- 3
- Ø Merge
- 5 Std. 21 Min.
- Gemergte PRs (30 T.)
- 378
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codeatlasdev/ui
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
codeatlasdev/ui#1340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:a11y area:components bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
codeatlasdev/ui#1336 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
codeatlasdev/ui#1329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
codeatlasdev/ui#1292 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:components enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
codeatlasdev/ui#1198 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codeatlasdev/ui
Ähnliche Issues
-
bug frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
CivicTechWR/accessible-housing-portal#578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
sandbox-quantum/switch#2163 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lolimmlost/aidj#433 ·
Maintainer antworten meist innerhalb von 1 Tag
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag