From 68b454c43ad73da04d01173a4b64fe25c09d68fd Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Tue, 23 Oct 2018 11:19:58 +0200 Subject: [PATCH] Try WordPress logo animation for preview (#10896) * Try WordPress logo animation for preview This adds a WordPress logo that paints itself when you click preview. Labelled "Try" because it still needs a few thoughts. We might need to speed up the animation because most previews are super fast and you barely see the animation. * Clean up CSS, add vendor prefixes * Tweak the changelog --- packages/editor/CHANGELOG.md | 6 ++- .../components/post-preview-button/index.js | 42 ++++++++++++++++++- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 3f7d1d3b466970..a57ac48e8f0f94 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,5 +1,9 @@ ## 5.0.1 (2018-10-22) +### Polish + +- Add animated logo to preview interstitial screen. + ## 5.0.0 (2018-10-19) ### Breaking Changes @@ -52,7 +56,7 @@ - `isFetchingSharedBlock` selector has been removed. Use `isFetchingReusableBlock` instead. - `getSharedBlocks` selector has been removed. Use `getReusableBlocks` instead. - `editorMediaUpload` has been removed. Use `mediaUpload` instead. -- Change how required built-ins are polyfilled with Babel 7 ([#9171](https://github.com/WordPress/gutenberg/pull/9171)). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods. +- Change how required built-ins are polyfilled with Babel 7 ([#9171](https://github.com/WordPress/gutenberg/pull/9171)). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods. - `wp.editor.DocumentTitle` component has been removed. - `getDocumentTitle` selector (`core/editor`) has been removed. diff --git a/packages/editor/src/components/post-preview-button/index.js b/packages/editor/src/components/post-preview-button/index.js index 1a2494dca98f9a..6d4f5941951145 100644 --- a/packages/editor/src/components/post-preview-button/index.js +++ b/packages/editor/src/components/post-preview-button/index.js @@ -90,8 +90,11 @@ export class PostPreviewButton extends Component { const markup = `
-

Please wait…

-

Generating preview.

+ + + + +

Generating preview...