Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Commit c0abedd

Browse files
committed
CJPM-17497: Removed white Panel around Blank Slate and fixed TopNav margins.
1 parent d52ad48 commit c0abedd

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

packages/visual-stack/src/components/BlankSlate/index.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,27 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Button } from '../Button';
44
import './BlankSlate.css';
5-
import IconExample from 'mdi-react/BlurIcon';
6-
import { Panel } from '../../../lib/components/Panel';
75

86
export const BlankSlate = ({
97
children,
108
alignment = '',
119
title = 'You do not have any content.',
12-
headerGraphic = <IconExample />,
10+
headerGraphic = '',
1311
className = '',
1412
...restProps
1513
}) => {
1614
return (
17-
<Panel>
18-
<div
19-
{...restProps}
20-
className={`vs-bs-container ${alignment === 'left-side' &&
21-
'vs-bs-leftalign'} ${className}`}
22-
>
23-
<div className="vs-bs-img">{headerGraphic}</div>
24-
<div className="vs-bs-content">
25-
<h1 className="vs-bs-title">{title}</h1>
26-
{children}
27-
</div>
15+
<div
16+
{...restProps}
17+
className={`vs-bs-container ${alignment === 'left-side' &&
18+
'vs-bs-leftalign'} ${className}`}
19+
>
20+
<div className="vs-bs-img">{headerGraphic}</div>
21+
<div className="vs-bs-content">
22+
<h1 className="vs-bs-title">{title}</h1>
23+
{children}
2824
</div>
29-
</Panel>
25+
</div>
3026
);
3127
};
3228

packages/visual-stack/src/components/TopNav/TopNav.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242

4343
.vs-topnav-content {
4444
position: relative;
45-
margin: 0 auto;
45+
margin-top: 64px;
46+
margin-bottom: 0;
47+
margin-left: auto;
48+
margin-right: auto;
4649
z-index: 10;
4750
}
4851

0 commit comments

Comments
 (0)