-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update shadows UI to match new designs
- Loading branch information
1 parent
8ac5225
commit fd8d6e8
Showing
6 changed files
with
558 additions
and
347 deletions.
There are no files selected for viewing
34 changes: 6 additions & 28 deletions
34
packages/edit-site/src/components/global-styles/screen-shadows.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,13 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { __ } from '@wordpress/i18n'; | ||
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import ScreenHeader from './header'; | ||
import ShadowsPanel from './shadows-panel'; | ||
import { unlock } from '../../lock-unlock'; | ||
import ShadowsEditPanel from './shadows-edit-panel'; | ||
|
||
const { useGlobalSetting, useSettingsForBlockElement } = | ||
unlock( blockEditorPrivateApis ); | ||
|
||
function ScreenShadows() { | ||
// const [ rawSettings ] = useGlobalSetting( '' ); | ||
// const settings = useSettingsForBlockElement( rawSettings ); | ||
return ( | ||
<> | ||
<ScreenHeader | ||
title={ __( 'Shadows' ) } | ||
description={ __( | ||
'Shadows and the application of those shadows on site elements.' | ||
) } | ||
/> | ||
<div className="edit-site-global-styles-screen"> | ||
<ShadowsPanel /> | ||
</div> | ||
</> | ||
); | ||
export function ScreenShadows() { | ||
return <ShadowsPanel />; | ||
} | ||
|
||
export default ScreenShadows; | ||
export function ScreenShadowsEdit() { | ||
return <ShadowsEditPanel />; | ||
} |
Oops, something went wrong.