Closed alexwbbr closed 7 months ago
in the example docs:
<TabGroup
activeTabClassName="tab-active-class"
id="tab-label-id"
activeKey="tab label"
disabledClassTab="disabled-class-name" <----
className="class-name"
containerClassName="container-class-name"
contentClassName="content-class-name"
tabClassName="tab-class-name" <----
onClick={onChangeHandler} <----
>
<Tab
label="tab label"
eventKey="tab-id"
disabled={false}
className="tab-class-name"
>
This the content for tab
</Tab>
</TabGroup>
to:
<TabGroup
activeTabClassName="tab-active-class"
id="tab-label-id"
activeKey="tab label"
disabledClassName ="disabled-class-name" <----
className="class-name"
containerClassName="container-class-name"
contentClassName="content-class-name"
tabClassName="common-tab-class" <----
onSelect ={onChangeHandler} <----
>
<Tab
label="tab label"
eventKey="tab-id"
disabled={false}
className="tab-class-name"
>
This the content for tab
</Tab>
</TabGroup>
closed by #569
Following the example from the tabgroup stotybook docs: https://main--6069a6f47f4b9f002171f8e1.chromatic.com/?path=/docs/dcxlibrary-tabs-documentation--docs, which also has some mistakes such as disabledClassTab and onClick not being properties, once this is rendered I am noticing two instances of "tab-class-name" on the tabs element.
I think this is coming from the Tab component className property.
follow this steps to create your branch: