patternfly / patternfly/patternfly-react
Bug - [Tabs] - [Vertical Tabs show content below tablist instead of beside]
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 862
- Fork
- 392
- Merge medio
- 4g 8h
- PR unite (30g)
- 9
Descrizione
Describe the problem
When using vertical tabs, the content is rendered below the tablist.
This looks a bit strange, especially when using boxed tabs.
How do you reproduce the problem?
This behavior is shown on the Patternfly website: https://www.patternfly.org/components/tabs#vertical-tabs:
Note that the tablist fills the entire width of the demo.
So you can use the code from that example
Expected behavior
The content is displayed to the right of the tablist, as the design (especially if the tabs are boxed) indicates.
I could sort of replicate what I want by wrapping both the tablist and the content in a flexbox.
<div class="pf-v5-c-tabs pf-m-vertical pf-m-box">
<div style="display: flex;">
<ul class="pf-v5-c-tabs__list">...</ul>
<section class="pf-v5-c-tab-content">Users</section>
</div>
</div>
yields:
Is this issue blocking you?
The current workaround is to use detached tabs and place the tabs and the content in a grid and manually specifying how large each side should be.
Screenshots
If applicable, add screenshots to help explain the issue.
What is your environment?
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
What is your product and what release date are you targeting?
OS: Arch Linux
Browser: Firefox
This is a copy of the original issue https://github.com/patternfly/patternfly/issues/6117 and I moved here since I believe it fits more the ReactJS library rather than the Patternfly repo itself.
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.
Direzione di ricerca
Inizia riproducendo l’esempio di tab verticali nella pagina dei tab di PatternFly o nel CodeSandbox collegato e ispeziona l’implementazione di Tabs in questo repository; l’issue non indica alcun file sorgente né alcun test. Il lavoro è completato quando i tab verticali con riquadro mostrano il loro contenuto accanto al tablist senza il workaround flexbox segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100