patternfly / patternfly/patternfly-react
Bug - [Tabs] - [Vertical Tabs show content below tablist instead of beside]
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 862
- Forks
- 392
- Ø Merge
- 4 T. 8 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Beispiel für vertikale Tabs auf der PatternFly-Tabs-Seite oder im verlinkten CodeSandbox zu reproduzieren, und untersuche die Tabs-Implementierung in diesem Repository; das Issue nennt keine Quelldatei und keinen Test. Erledigt ist die Aufgabe, wenn vertikale umrandete Tabs ihren Inhalt neben der Tab-Liste anzeigen, ohne den gemeldeten Flexbox-Workaround.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100