feat(core): Expose SCSS breakpoints
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Feature Description
As @angular/flex-layout become deprecated and Angular team does not intend to provide an alternative, we are forced to handle responsive layout by our own.
Writing CSS is ok, but to stick with Material design guidance we must use specific breakpoints. It would be great if @angular/material could expose these breakpoints like it does for palettes and theming. Otherwise we have to declare them ourself for every projects.
### Use Case
would simplify scss writting and add opinions about breakpoints (like CDK Layout API)
```scss
@use '@angular/material' as mat;
@media #{$mat.gt-xs} {
// insert your styles
}
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia confrontando le variabili di breakpoint SCSS richieste con la CDK Layout API e la superficie di theming di Angular Material menzionate nell’issue. Il lavoro è completato quando Angular Material espone valori di breakpoint documentati che possono essere utilizzati nelle media query SCSS senza ridefinirli in ogni progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, scss
- Ambito
- design, frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100