dxc-technology / halstack-react

Library of components for building SPAs with React and Halstack Design System
https://developer.dxc.com/halstack/
Apache License 2.0
15 stars 14 forks source link

Add `title` attribute to the Toggle Group options #1658

Closed GomezIvann closed 1 year ago

GomezIvann commented 1 year ago

Is your feature request related to a problem? Please describe. After some feedback regarding the necessity of a Tooltip component, a temporary and useful solution for the DxcToggleGroup is to add/open the title prop for each option. This would allow them to create accessible only-icon buttons (no label) and display an assistive bubble when they hover over an option, so the final user can know which action each button does.

Describe the solution you'd like Add the title prop to the option's attributes in the DxcToggleGroup.