Skip to content

Commit 481f18f

Browse files
committed
Restore the branding UI elements
1 parent 2c1b687 commit 481f18f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

packages/playground/components/src/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
export const playgroundLogo = (props?: React.SVGProps<SVGSVGElement>) => {
3+
export const PlaygroundLogo = (props?: React.SVGProps<SVGSVGElement>) => {
44
return (
55
<svg
66
width="32"

packages/playground/website/src/components/site-manager/sidebar/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ import {
1414
DropdownMenu,
1515
} from '@wordpress/components';
1616
import { moreVertical, page } from '@wordpress/icons';
17-
import { ClockIcon, WordPressIcon } from '@wp-playground/components';
17+
import {
18+
PlaygroundLogo,
19+
ClockIcon,
20+
WordPressIcon,
21+
} from '@wp-playground/components';
1822
import {
1923
setActiveSite,
2024
useActiveSite,
2125
useAppDispatch,
2226
useAppSelector,
2327
} from '../../../lib/state/redux/store';
24-
import { SiteLogo } from '../../../lib/site-metadata';
2528
import {
2629
selectSortedSites,
2730
selectTemporarySite,
@@ -100,8 +103,7 @@ export function Sidebar({
100103
>
101104
<h1 className="sr-only">WordPress Playground</h1>
102105
<div className={css.sidebarHeader}>
103-
{/* Remove Playground logo because branding isn't finalized. */}
104-
{/* <Logo className={css.sidebarLogoButton} /> */}
106+
<PlaygroundLogo className={css.sidebarLogo} />
105107
</div>
106108
<DropdownMenu
107109
className={css.componentsDropdown}

packages/playground/website/src/components/site-manager/sidebar/style.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@
7777
flex-shrink: 0;
7878
}
7979

80-
.sidebar-logo-button {
81-
cursor: pointer;
80+
.sidebar-logo {
8281
border: none;
8382
background: none;
8483
margin: 0;

packages/playground/website/src/components/site-manager/style.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
padding: var(--site-manager-border-width);
55
background-color: var(--site-manager-background-color);
66
/* Remove Playground background graphic because branding isn't finalized. */
7-
/* background-image: url(../../../public/site-manager-background.svg); */
7+
background-image: url(../../../public/site-manager-background.svg);
88
background-position: bottom left;
99
background-repeat: no-repeat;
1010
width: 100%;

0 commit comments

Comments
 (0)