Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 7 forks source link

Details component - Please add prop for an id #438

Closed arpakuma closed 1 year ago

arpakuma commented 1 year ago

Is your feature request related to a problem? Please describe. I need to add 'id' prop on the summary -> span tag for automation testing.

Describe the solution you'd like Please add a property summaryTextId (similar to summaryTextClassName)

< Details summary="Help with nationality" ....... summaryTextClassName="summar-text-class-name" summaryTextId="summary-text-id" .......

Additional context Add any other context or screenshots about the feature request here.

daniele-zurico commented 1 year ago

I suggest to add another props called:

summaryTextProps?: any

in this way you can extend it as much as you want

daniele-zurico commented 1 year ago

closed by #442