Skip to content

Commit d37cda8

Browse files
ramonjdtellthemachinesandrewserong
authored
Block toolbar: hide styles dropdown in Revisions UI (#76119)
Co-authored-by: ramonjd <[email protected]> Co-authored-by: tellthemachines <[email protected]> Co-authored-by: andrewserong <[email protected]>
1 parent 373425a commit d37cda8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/block-editor/src/components/block-toolbar/block-toolbar-icon.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ function getBlockIconVariant( { select, clientIds } ) {
7171

7272
if ( _showBlockSwitcher ) {
7373
return 'switcher';
74-
} else if ( isContentOnlyMode && hasBlockStyles && ! hasPatternOverrides ) {
74+
} else if (
75+
isContentOnlyMode &&
76+
hasBlockStyles &&
77+
! hasPatternOverrides &&
78+
canEdit
79+
) {
7580
return 'styles-only';
7681
} else if ( _showPatternOverrides ) {
7782
return 'pattern-overrides';

0 commit comments

Comments
 (0)