Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[Button] Create a button component that auto inits rippleΒ #4813

Closed
@abhiomkar

Description

Feature Request

Right now clients had to instantiate MDCRipple on .mdc-button element where as most of our components instantiates its own class. This is counter intuitive to developers.

Proposed solution

Instead of

new MDCRipple(document.querySelector('.mdc-button'))

It should be

new MDCButton(document.querySelector('.mdc-button'))

MDCButton class acts as proxy to MDCRipple when instantiating it.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions