Skip to content

Support validation errors on checkboxes and radio buttons #11333

@anthony-o

Description

@anthony-o

Bug, feature request, or proposal:

Support validation errors in checkboxes and radio buttons. For instance, displaying radio button labels in red when required mat-radio-group was not filled-in.

What is the expected behavior?

This stackblitz should display red label on the radio buttons when clicking on "Submit".
It contains one required mat-radio-group (with multiple mat-radio-buttons in it) and one required input.

What is the current behavior?

Currently, only the text input in the mat-form-field is correctly displayed in red when clicking on Submit.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

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

Angular 5.2.0 as well as 6.0.0

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