Skip to content

Set material stepper to horizontal or vertical based on attribute #13144

Closed
@GCSDC

Description

@GCSDC

#### Bug, feature request, or proposal:
proposal

#### What is the expected behavior?
Have a single component for both Horizontal and Vertical stepper, and have a bindable attribute to define if it should display vertically or horizontally

#### What is the current behavior?
There are two separate components: matHorizontalStepper and matVerticalStepper

#### What are the steps to reproduce?
N/A

#### What is the use-case or motivation for changing an existing behavior?
Horizontal steppers are great, and show the steps on a very clear way, but are not good for small screens (specially when the number fo steps grow).

Vertical steppers fits small screens very well, but do not provide a very clear view of all steps and the current selected one (specially if there is much content on each or some steps).

For providing a great experience on both small and large screens, a combination of both is required. This means needing to have both components on the template and choosing between one of them, and also duplicating content or encapsulating it using other strategies (which makes code less clearer).

Being able to use a single component on template and choose its type based on a property makes it much easier to use and allow for smaller and clearer code.

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

N/A

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