Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ test('should render secondary tabs', () => {
<Tab id="secondary tab1" eventKey={10} title={<TabTitleText>"Secondary Tab item 1"</TabTitleText>}>
Secondary Tab 1 section
</Tab>
<Tab id="secondary tab2" eventKey={11} title={<TabTitleText>"Secondary Tab item 2"</TabTitleText>}>>
<Tab id="secondary tab2" eventKey={11} title={<TabTitleText>"Secondary Tab item 2"</TabTitleText>}>
Secondary Tab 2 section
</Tab>
<Tab id="secondary tab3" eventKey={12} title={<TabTitleText>"Secondary Tab item 3"</TabTitleText>}>>
<Tab id="secondary tab3" eventKey={12} title={<TabTitleText>"Secondary Tab item 3"</TabTitleText>}>
Secondary Tab 3 section
</Tab>
</Tabs>
</Tab>
<Tab id="tab2" eventKey={1} title={<TabTitleText>"Tab item 2"</TabTitleText>}>>
<Tab id="tab2" eventKey={1} title={<TabTitleText>"Tab item 2"</TabTitleText>}>
Tab 2 section
</Tab>
<Tab id="tab3" eventKey={2} title={<TabTitleText>"Tab item 3"</TabTitleText>}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ Array [
role="tabpanel"
tabindex="0"
>
&gt; Secondary Tab 2 section
Secondary Tab 2 section
</section>
<section
aria-labelledby="pf-tab-12-secondary tab3"
Expand All @@ -1089,7 +1089,7 @@ Array [
role="tabpanel"
tabindex="0"
>
&gt; Secondary Tab 3 section
Secondary Tab 3 section
</section>
</section>,
<section
Expand All @@ -1102,7 +1102,7 @@ Array [
role="tabpanel"
tabindex="0"
>
&gt; Tab 2 section
Tab 2 section
</section>,
<section
aria-labelledby="pf-tab-2-tab3"
Expand Down
11 changes: 10 additions & 1 deletion packages/react-core/src/demos/Tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ section: components
import DashboardWrapper from './examples/DashboardWrapper';
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';

## Demos

Expand Down Expand Up @@ -440,4 +445,8 @@ TabsOpenWithSecondaryTabsDemo = () => {

### Nested tabs
```js isFullscreen file="./Tabs/NestedTabsDemo.js"
```
```

### Tables and tabs
```js isFullscreen file="./examples/Tabs/TabsAndTable.tsx"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```js isFullscreen file="./examples/Tabs/TabsAndTable.tsx"
```ts isFullscreen file="./examples/Tabs/TabsAndTable.tsx"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said in the PR description, it is not possible with the current config to import it like you suggested... :(

```
Loading