Skip to content

[feat] ripples: dynamically enable/disable all interaction ripples #9729

Closed
@reppners

Description

@reppners

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Enable/Disable ripples globally at runtime.

What is the current behavior?

Ripples can be disabled globally by providing MAT_RIPPLE_GLOBAL_OPTIONS.

This is static and can't be changed at runtime.
If this assumption is wrong please show me how to dynamically change the root injectors value.

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

An app that needs to run on low-end-devices as well as high-end devices. The user has the ability to disable styles and effects that degrade performance on low-end devices. This includes disabling ripples.

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

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
    
Angular CLI: 1.6.6
Node: 6.11.4
OS: darwin x64
Angular: 5.2.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

@angular/cdk: 5.1.1
@angular/cli: 1.6.6
@angular/flex-layout: 2.0.0-beta.12
@angular/material: 5.1.1
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.24
@angular-devkit/schematics: 0.0.43
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.6
@schematics/angular: 0.1.17
typescript: 2.6.2
webpack-bundle-analyzer: 2.9.1
webpack: 3.10.0

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions