cfpb / capital-framework

The Consumer Financial Protection Bureau's user interface framework
https://cfpb.github.io/capital-framework/
Creative Commons Zero v1.0 Universal
55 stars 29 forks source link

Expandables: add getLabelText method to API #872

Closed anselmbradford closed 5 years ago

anselmbradford commented 5 years ago

FilterableListControls queries the DOM here in order to retrieve the expandable label text to send to Google Analytics. We should probably add a method to expandables to return the label text so that code elsewhere isn't querying the expandable DOM for CSS classes that could change.