This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Closed
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.