Closed dereksmart closed 8 years ago
cc @MichaelArestad for review
Tested in action in https://github.com/Automattic/jetpack/pull/3935 and works perfectly.
Make the whole header clickable, with the exception of the toggle and the up/down arrow as shown in light blue in the screenshots. Large screen
Small screen
cc @jeffgolenski @MichaelArestad for review
@eliorivero I tested this in all modern browsers on iOS, Android, mac os, and IE 10+ – looks good to me.
Sometimes, like in Jetpack when you already have a clickable item (toggle) in the header, you still want part of the header to be clickable and expand, but not the whole thing, as it would clash with the toggle. This allows just the header text to be clickable.
Also adds the existing
clickableHeader
to the listed propTypes, as it was missing from there before.To test: Get this branch linked to any Jetpack branch, and add
clickableHeaderText={ true }
to anyFoldableCard