bug(TABS): tabs with fitInkBarToContent does not follow Material 3 design specs
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
As per [Material 3 guidelines](https://m3.material.io/components/tabs/specs), primary tabs should have active indicator's height of `3px` and shape of `3px 3px 0 0`. In Angular Material, primary tabs' behaviour can be achieved using `[fitInkBarToContent]=true` input.
But, they have height of `2px`, and shape of `0`, which is right only for secondary tabs.
We can override it by using `tabs-overrides` mixin like below:
```scss
@use '@angular/material' as mat;
[fitInkBarToContent],
[ng-reflect-fit-ink-bar-to-content='true'] {
> .mat-mdc-tab-header {
@include mat.tabs-overrides(
(
active-indicator-shape: 3px 3px 0 0,
active-indicator-height: 3px,
)
);
}
}
```
But, it should be the default behaviour as per Material 3 specs.
### Reproduction
Not needed.
### Expected Behavior
Tabs with `[fitInkBarToContent]=true` should have active indicator's height of `3px` and shape of `3px 3px 0 0`.
### Actual Behavior
Tabs with `[fitInkBarToContent]=true` have active indicator's height of `2px`, and shape of `0`.
### Environment
- Angular: 19
- CDK/Material: 19
- Browser(s): Edge
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guía de contribución
Línea de trabajo
Comienza por la implementación de tabs de Angular Material y el mixin tabs-overrides, siguiendo la ruta fitInkBarToContent y los estilos de active-indicator en .mat-mdc-tab-header. Se considera terminado cuando esta entrada produce un active indicator de 3px con una forma de 3px 3px 0 0, conforme a lo esperado en Material 3.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, scss, 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