patternfly / patternfly/patternfly-react

Bug - [Tabs] - [Vertical Tabs show content below tablist instead of beside]

Abierto
#9,869 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Demo Pinned Waiting for core
Lenguaje dominante
TypeScript
Estrellas
862
Forks
392
Merge medio
4 d 8 h
PR fusionados (30 d)
9

Descripción

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:
288537127-536b0c86-003d-47a4-9b49-18848fece0a4

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:

288542503-b60707b4-729b-41ef-824f-a785343c2e3a

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza reproduciendo el ejemplo de pestañas verticales de la página de pestañas de PatternFly o del CodeSandbox enlazado, e inspecciona la implementación de Tabs en este repositorio; el issue no indica ningún archivo fuente ni prueba. Se considera terminado cuando las pestañas verticales con borde muestran su contenido junto al tablist sin el workaround de flexbox indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react, typescript
Área
frontend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.