-
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.
Spotlight Mode and improved Unified Toolbar (#9394)
* Adds new "Spotlight Mode" to highlight a single block at a time and eliminates block outlines. * Reworks fixed toolbar as Unified Toolbar, also reducing block outlines. * Groups them as "Writing" settings.
- Loading branch information
1 parent
eac95b5
commit c5573b7
Showing
14 changed files
with
142 additions
and
58 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* WordPress Dependencies | ||
*/ | ||
import { MenuGroup } from '@wordpress/components'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { ifViewportMatches } from '@wordpress/viewport'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import FeatureToggle from '../feature-toggle'; | ||
|
||
function WritingMenu( { onClose } ) { | ||
return ( | ||
<MenuGroup | ||
label={ __( 'Writing' ) } | ||
filterName="editPost.MoreMenu.writing" | ||
> | ||
<FeatureToggle feature="fixedToolbar" label={ __( 'Unified Toolbar' ) } onToggle={ onClose } /> | ||
<FeatureToggle feature="focusMode" label={ __( 'Spotlight Mode' ) } onToggle={ onClose } /> | ||
</MenuGroup> | ||
); | ||
} | ||
|
||
export default ifViewportMatches( 'medium' )( WritingMenu ); |
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
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
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
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
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
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
Oops, something went wrong.