Skip to content

Commit

Permalink
Remove css to hide illustration on block select
Browse files Browse the repository at this point in the history
  • Loading branch information
akasunil committed Aug 25, 2024
1 parent a462d07 commit 1f8bc43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/audio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function AudioEdit( {
return (
<Placeholder
className="block-editor-media-placeholder"
withIllustration
withIllustration={ ! isSingleSelected }
icon={ icon }
label={ __( 'Audio' ) }
instructions={ __(
Expand Down
21 changes: 0 additions & 21 deletions packages/block-library/src/audio/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,4 @@
margin-top: -9px;
margin-left: -9px;
}

// Show Placeholder style on-select.
&.is-selected .components-placeholder {
// Block UI appearance.
color: $gray-900;
background-color: $white;
box-shadow: inset 0 0 0 $border-width $gray-900;
border: none;

> svg {
opacity: 0;
}

.components-placeholder__illustration {
display: none;
}

&::before {
opacity: 0;
}
}
}

0 comments on commit 1f8bc43

Please sign in to comment.