Allow Label to set button component without onClick
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Comienza por el componente Label y sus pruebas existentes; después, sigue cómo cambia el elemento renderizado cuando se proporciona onClick. Define la forma compatible de solicitar un botón sin onClick y verifica que Label renderice un botón nativo con el comportamiento de foco esperado, mientras el uso existente permanece sin cambios.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the enhancement or change
Currently, in order for a clickable Label to render with the button element in the DOM is to pass an onClick handler to it. There may be use cases where an onClick isn't desired - one example being the new Canvas pattern in Chatbot where a clickable Label opens a Popover. In this case the Popover is passed the Label as a child (rather than using triggerRefs and the Label's onClick to dictate the Popover open state).
Allowing Label to set a button element could help in those sorts of scenarios, instead of needing to pass a triggerRef, onClick to Label, and onHidden to Popover (which may result in some funky focus behavior).
Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?
Any other information?
Not blocking as there is a workaround of setting role and tabindex on a normal Label, but it lacks some focus styles and it would be better for us to support this internally with native elements.
Jira Issue: PF-4637
- Lenguaje dominante
- TypeScript
- Estrellas
- 859
- Forks
- 395
- Merge medio
- 3 d 13 h
- PR fusionados (30 d)
- 15
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de patternfly/patternfly-react
-
fix(table): CollapseColumn uses wrong caret icon for expandable row togglePosiblemente ocupada @redhat-chai-bot la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
patternfly/patternfly-react#12727 ·
Los mantenedores suelen responder en 1 día
-
Bug - PageSidebar - collapsed sidebar is aria-hidden but its navigation links stay in the tab orderPosiblemente ocupada @Sophran-fbj la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
patternfly/patternfly-react#12693 ·
Los mantenedores suelen responder en 1 día
-
Bug - Label - Doesn't allow ref forwardingPosiblemente ocupada @tarunvashishth la tomó hace 28 días. AbiertoPF Team Stale
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
patternfly/patternfly-react#12651 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Bug - [Menu] - Flyout stays open when hovering a disabled itemPosiblemente ocupada @fallmo la tomó hace 64 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
patternfly/patternfly-react#12637 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
PF Team Stale
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
patternfly/patternfly-react#12617 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de patternfly/patternfly-react
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
vercel-labs/ui#999 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
melgarafael/DeskcommCRM#5109 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Doist/todoist-sdk-typescript#783 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
nicobailon/pi-subagents#3319 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Sidebar project filter uses Shift-click instead of ⌘-click to add or remove a projectAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día