Skip to content

Commit

Permalink
update shadows UI to match new designs
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Apr 25, 2024
1 parent 8ac5225 commit fd8d6e8
Show file tree
Hide file tree
Showing 6 changed files with 558 additions and 347 deletions.
34 changes: 6 additions & 28 deletions packages/edit-site/src/components/global-styles/screen-shadows.js
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 />;
}
Loading

0 comments on commit fd8d6e8

Please sign in to comment.