Skip to content

Commit 3a5adbb

Browse files
authored
Merge pull request #26 from rhamilto/remove-tab-contents-wrapper
Remove tab contents wrapper
2 parents 16c283a + 8a4ede3 commit 3a5adbb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/module/patternfly-docs/content/extensions/component-groups/examples/DetailsPage/DetailsPageExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export const BasicExample: React.FunctionComponent = () => (
5151
id: 'details-page-action-menu-example'
5252
}}
5353
tabs={[
54-
{ eventKey: 'details', title: 'Details', children: <div>Details content</div> },
55-
{ eventKey: 'other', title: 'Other', children: <div>Other content</div> }
54+
{ eventKey: 'details', title: 'Details', children: <div className="pf-u-m-md">Details content</div> },
55+
{ eventKey: 'other', title: 'Other', children: <div className="pf-u-m-md">Other content</div> }
5656
]}
5757
/>
5858
</Router>

packages/module/patternfly-docs/content/extensions/component-groups/examples/DetailsPage/HorizontalNavExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { HorizontalNav } from '@patternfly/react-component-groups';
44
export const BasicExample: React.FunctionComponent = () => (
55
<HorizontalNav
66
tabs={[
7-
{ eventKey: 'details', title: 'Details', children: <div>Details children</div> },
8-
{ eventKey: 'other', title: 'Other', children: <div>Other content</div> }
7+
{ eventKey: 'details', title: 'Details', children: <div className="pf-u-m-md">Details content</div> },
8+
{ eventKey: 'other', title: 'Other', children: <div className="pf-u-m-md">Other content</div> }
99
]}
1010
/>
1111
);

packages/module/src/HorizontalNav/HorizontalNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const HorizontalNav: React.FunctionComponent<HorizontalNavProps> = ({
6969
ouiaId={tab?.ouiaId}
7070
key={tab.eventKey}
7171
>
72-
<div className="pf-u-m-md">{tab.children}</div>
72+
{tab.children}
7373
</Tab>
7474
))}
7575
</Tabs>

0 commit comments

Comments
 (0)