ionic-team / ionic-team/ionic-framework

bug: ion-tab-button isn't focusable when no href

Abierto
#30,648 0 comentarios 0 reacciones 0 asignados Ver en GitHub
type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

`ion-tab-button` cannot be focused with the `tab` key when they do not have `href`

### Expected Behavior

Being able to select them with `tab`

### Steps to Reproduce

1. Use your `tab` until you select the `search` button.
2. You'll see you go direct to `search` without passing by other elements

### Code Reproduction URL

https://stackblitz.com/edit/2uoossd8?file=index.html

### Ionic Info

Ionic:

Ionic CLI : 5.4.16

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v20.19.1
npm : 10.8.2
OS : Linux 5.0

### Additional Information
I'd be glad to do a PR.
I would add the following

```typescript
@HostBinding('tabIndex')
get tabIndex() {
return 1
}
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start at the ion-tab-button component entry point and reproduce the keyboard navigation behavior using the linked StackBlitz example. Check the no-href case first; done means ion-tab-button elements without href are reachable with the Tab key rather than being skipped.

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

Evaluación

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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.