Skip to content

Commit

Permalink
Interface: move Fullscreen mode component to interface package (#21334)
Browse files Browse the repository at this point in the history
Move Fullscreen mode component from block-editor to interface package.
Remove fullscreen mode close button animations.
  • Loading branch information
vindl authored Apr 3, 2020
1 parent 052c835 commit 9a6da4a
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 18 deletions.
1 change: 0 additions & 1 deletion packages/block-editor/src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export { default as ButtonBlockerAppender } from './button-block-appender';
export { default as ColorPalette } from './color-palette';
export { default as ColorPaletteControl } from './color-palette/control';
export { default as ContrastChecker } from './contrast-checker';
export { default as __experimentalFullscreenMode } from './fullscreen-mode';
export { default as __experimentalEditorSkeleton } from './editor-skeleton';
export { default as __experimentalGradientPicker } from './gradient-picker';
export { default as __experimentalGradientPickerControl } from './gradient-picker/control';
Expand Down
1 change: 0 additions & 1 deletion packages/block-editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@

@import "./components/block-toolbar/style.scss";
@import "./components/editor-skeleton/style.scss";
@import "./components/fullscreen-mode/style.scss";
@import "./components/inserter/style.scss";

3 changes: 1 addition & 2 deletions packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { useSelect, useDispatch } from '@wordpress/data';
import {
BlockBreadcrumb,
__experimentalEditorSkeleton as EditorSkeleton,
__experimentalFullscreenMode as FullscreenMode,
} from '@wordpress/block-editor';
import {
Button,
Expand All @@ -29,7 +28,7 @@ import {
import { useViewportMatch } from '@wordpress/compose';
import { PluginArea } from '@wordpress/plugins';
import { __ } from '@wordpress/i18n';
import { ComplementaryArea } from '@wordpress/interface';
import { ComplementaryArea, FullscreenMode } from '@wordpress/interface';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import { EntityProvider } from '@wordpress/core-data';
import {
BlockBreadcrumb,
__experimentalEditorSkeleton as EditorSkeleton,
__experimentalFullscreenMode as FullscreenMode,
__unstableEditorStyles as EditorStyles,
} from '@wordpress/block-editor';
import { useViewportMatch } from '@wordpress/compose';
import { FullscreenMode } from '@wordpress/interface';

/**
* Internal dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,5 @@ body.js.is-fullscreen-mode {
#wpfooter {
margin-left: 0;
}

// Animations.
.edit-post-header {
transform: translateY(-100%);
animation: edit-post-fullscreen-mode__slide-in-animation 0.1s forwards;
@include reduce-motion("animation");
}
}
}

@keyframes edit-post-fullscreen-mode__slide-in-animation {
100% {
transform: translateY(0%);
}
}
1 change: 1 addition & 0 deletions packages/interface/src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default as ComplementaryArea } from './complementary-area';
export { default as FullscreenMode } from './fullscreen-mode';
export { default as PinnedItems } from './pinned-items';
1 change: 1 addition & 0 deletions packages/interface/src/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "./components/complementary-area-header/style.scss";
@import "./components/complementary-area/style.scss";
@import "./components/fullscreen-mode/style.scss";
@import "./components/pinned-items/style.scss";

0 comments on commit 9a6da4a

Please sign in to comment.