File tree Expand file tree Collapse file tree 4 files changed +6
-19
lines changed
packages/editor/src/components Expand file tree Collapse file tree 4 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -427,8 +427,8 @@ export class BlockListBlock extends Component {
427427 // Empty paragraph blocks should always show up as unselected.
428428 const showEmptyBlockSideInserter = ( isSelected || isHovered ) && isEmptyDefaultBlock && isValid ;
429429 const showSideInserter = ( isSelected || isHovered ) && isEmptyDefaultBlock ;
430- const shouldAppearSelected = ! isFocusMode && ! hasFixedToolbar && ! showSideInserter && isSelected && ! isTypingWithinBlock ;
431- const shouldAppearHovered = ! isFocusMode && ! hasFixedToolbar && isHovered && ! isEmptyDefaultBlock ;
430+ const shouldAppearSelected = ! isFocusMode && ! showSideInserter && isSelected && ! isTypingWithinBlock ;
431+ const shouldAppearHovered = ! isFocusMode && isHovered && ! isEmptyDefaultBlock ;
432432 // We render block movers and block settings to keep them tabbale even if hidden
433433 const shouldRenderMovers = ! isFocusMode && ( isSelected || hoverArea === 'left' ) && ! showEmptyBlockSideInserter && ! isMultiSelecting && ! isPartOfMultiSelection && ! isTypingWithinBlock ;
434434 const shouldShowBreadcrumb = ! isFocusMode && isHovered && ! isEmptyDefaultBlock ;
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
4- import classnames from 'classnames' ;
5-
61/**
72 * WordPress dependencies
83 */
@@ -53,12 +48,10 @@ export class BlockBreadcrumb extends Component {
5348 }
5449
5550 render ( ) {
56- const { clientId, rootClientId, isLight } = this . props ;
51+ const { clientId, rootClientId } = this . props ;
5752
5853 return (
59- < div className = { classnames ( 'editor-block-list__breadcrumb' , {
60- 'is-light' : isLight ,
61- } ) } >
54+ < div className = { 'editor-block-list__breadcrumb' } >
6255 < Toolbar >
6356 { rootClientId && (
6457 < Fragment >
@@ -75,12 +68,11 @@ export class BlockBreadcrumb extends Component {
7568
7669export default compose ( [
7770 withSelect ( ( select , ownProps ) => {
78- const { getBlockRootClientId, getEditorSettings } = select ( 'core/editor' ) ;
71+ const { getBlockRootClientId } = select ( 'core/editor' ) ;
7972 const { clientId } = ownProps ;
8073
8174 return {
8275 rootClientId : getBlockRootClientId ( clientId ) ,
83- isLight : getEditorSettings ( ) . hasFixedToolbar ,
8476 } ;
8577 } ) ,
8678] ) ( BlockBreadcrumb ) ;
Original file line number Diff line number Diff line change 899899 }
900900 }
901901
902- & .is-light .components-toolbar {
903- background : rgba ($white , 0.5 );
904- color : $dark-gray-700 ;
905- }
906-
907902 // Position the breadcrumb closer on mobile.
908903 [data-align = " left" ] & ,
909904 [data-align = " right" ] & {
Original file line number Diff line number Diff line change 4646 }
4747 }
4848
49- & :not (.is-focus-mode ):not ( .has-fixed-toolbar ) {
49+ & :not (.is-focus-mode ) {
5050 & .is-selected .editor-post-title__input {
5151 // use opacity to work in various editor styles
5252 border-color : $dark-opacity-light-500 ;
You can’t perform that action at this time.
0 commit comments