Skip to content

CSS units - use rem values instead of pixels  #5299

@Cleudi

Description

@Cleudi

Bug, feature request, or proposal:

Proposal

What is the expected behavior?

Use rem units especially instead of px units to provide a scalable layout.
Good guide (imho): https://webdesign.tutsplus.com/tutorials/comprehensive-guide-when-to-use-em-vs-rem--cms-23984

What is the current behavior?

Without overrides, components change only some parts of their dimensions (the ones defined in em units).

What are the steps to reproduce?

Switch font size of your browser (from very large to very small) and have a look at material demos.
https://material2-app.firebaseapp.com/

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
Not necessary

What is the use-case or motivation for changing an existing behavior?

Fully scaling components require overrides of materials CSS (of course this is not covered by theming) which makes updating hard.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material - latest

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions