halstack-react icon indicating copy to clipboard operation
halstack-react copied to clipboard

New `Tabs` component implementation

Open Mil4n0r opened this issue 6 months ago • 0 comments

Checklist (Check off all the items before submitting)

  • [ ] Build process is done without errors. All tests pass in the /lib directory.
  • [ ] Self-reviewed the code before submitting.
  • [ ] Meets accessibility standards.
  • [ ] Added/updated documentation to /website as needed.
  • [ ] Added/updated tests as needed.

Description Current DxcTabs API is confusing, as it is expected to work in a similar way as DxcNavTabs, but it does not provide Compound Components, so we have no access to onClick/onHover events separately for each Tab.

For consistency purposes and easier implementation of the wrappers required in Halstack Studio and UXPin, it is convenient to redo it.

For now, we are maintaining the old API available to prevent adding breaking changes, however, those props will be marked as LEGACY/DEPRECATED to not encourage using them in the future (and eventually, removing them).

Mil4n0r avatar Jul 26 '24 12:07 Mil4n0r