Skip to content

Disabled MatChips styles differ from documentation #8883

Closed
@amandabot

Description

@amandabot

Bug, feature request, or proposal:

MatChips with a disabled="true" attribute are given focus styles when clicked. The documentation states otherwise:

When disabled, chips are neither selectable nor focusable. Currently, disabled chips receive no special styling.

What is the expected behavior?

Disabled MatChips should not be styled per documentation

What is the current behavior?

Disabled MatChips receive focus styles when clicked

What are the steps to reproduce?

https://stackblitz.com/edit/angular-5fnwss?file=app/chips-stacked-example.html

Just click any of the chips, and it elevates with the same behavior as non-disabled chips.

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

The behavior does not match the documentation

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

Angular 5.1.0, Material 5.0.0

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions