-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(ripple): Expose focus/blur handlers #2905
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2905 +/- ##
=========================================
+ Coverage 98.3% 98.3% +<.01%
=========================================
Files 101 101
Lines 4359 4363 +4
Branches 563 563
=========================================
+ Hits 4285 4289 +4
Misses 74 74
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the two new methods to the README under MDCRippleFoundation methods.
Also, it should be feasible to add tests for these 2 new methods, right? |
packages/mdc-ripple/README.md
Outdated
@@ -150,6 +150,8 @@ Method Signature | Description | |||
`activate() => void` | Proxies to the foundation's `activate` method | |||
`deactivate() => void` | Proxies to the foundation's `deactivate` method | |||
`layout() => void` | Proxies to the foundation's `layout` method | |||
`handleFocus() => void` | Adds `BG_FOCUSED` class to the ripple surface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd genericize these descriptions to simply state that they handle focus / blur events on the ripple surface (see also e.g. Text Field's descriptions of handle
methods)
This change adds two new public methods to MDC Ripple Foundation - including
handleFocus
andhandleBlur
to be used by other frameworks on focus and blur.Fixes #2838