Skip to content

Commit

Permalink
Update attribute name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndiego committed Jul 22, 2022
1 parent e0f449d commit 85730c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function ParagraphBlock( {
}
data-empty={ content ? false : true }
placeholder={ placeholder || __( 'Type / to choose a block' ) }
data-has-custom-placeholder={ placeholder ? true : undefined }
data-custom-placeholder={ placeholder ? true : undefined }
__unstableEmbedURLOnPaste
__unstableAllowPrefixTransformations
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

.block-editor-block-list__block[data-empty="true"] + .block-editor-block-list__block[data-empty="true"] {
&:not([data-has-custom-placeholder="true"]) {
&:not([data-custom-placeholder="true"]) {
[data-rich-text-placeholder] {
opacity: 0;
}
Expand Down

0 comments on commit 85730c0

Please sign in to comment.