Skip to content

Disable ripple for checkbox  #17404

@ability-app

Description

@ability-app

Reproduction

Steps to reproduce:

  1. GoTo a modified example from the docs: https://stackblitz.com/edit/angular-wqcqyp
  2. {provide: MAT_RIPPLE_GLOBAL_OPTIONS, useValue: { disabled: true }} inside main.ts
  3. mat-checkbox [disableRipple]="true" in checkbox-configurable-example.html

Expected Behavior

IT should not be visible but after updating to angular 8 and Angular material latest version the ripple is visible again even if disableRipple is used, so I added the global disable ripple configuration but still the same

Actual Behavior

The ripple on the checkbox on hover is visible although disableRipple and MAT_RIPPLE_GLOBAL_OPTIONS disabled is specified

Environment

  • Angular: 8
  • CDK/Material: 8.2.4 (same issue with 8.1.4)
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): macOs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions