Open jjeroch opened 1 month ago
size should be 60x30 for the first draft
@jjeroch great idea to add this component to the library! Could we use the MUI toggle switch component as a reference? It covers all the best practice sizes, states and behaviours. The ON/OFF text would not be needed because it's a common interaction with the switch logic.
For the tooltip on hover: this should be included as an optional variation for the component, since it will be used in very special cases where detailed info is needed. It should not replace the base hover inteaction, that highlights the accessible component. A tooltip delay of 300-500 milliseconds would ensure that it's not conflicting in the interaction.
Gladly check out the MUI component, it would be great to add hover and focused state, size options and tooltip as optional component setting to the AC. Cofinity-UX is happy to provide support along the development process!
@kunalgaurav-bmw
Description: We need to implement a new toggle switch component that adheres to our design system. The component should have three main states:
The hover state should be configurable to be either active or inactive depending on the needs of the application. Additionally, when the hover state is active and a user hovers over the toggle, a tooltip should appear. The content of the tooltip will be dynamically fetched from the locales (translation) files to support internationalization.
Acceptance Criteria:
Functional Design Component Description (to be loaded into storybook):
Design Specs: