Skip to content

feat(core): Expose SCSS breakpoints #25923

Open
@MikaStark

Description

@MikaStark

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)

@use '@angular/material' as mat;

@media #{$mat.gt-xs} {
  // insert your styles
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/corefeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions