Skip to content

Commit

Permalink
Fix in Placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Jan 22, 2024
1 parent 1083948 commit 1f3e75a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 8 additions & 2 deletions packages/block-library/src/embed/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@
.components-placeholder__error {
word-break: break-word;
}
}

.wp-block-embed__learn-more {
margin-top: 1em;

.components-placeholder__learn-more {
margin-top: 1em;
@at-root .wp-block-post-content & {
a {
color: var(--wp-admin-theme-color);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/embed/embed-placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const EmbedPlaceholder = ( {
{ _x( 'Embed', 'button label' ) }
</Button>
</form>
<div className="components-placeholder__learn-more">
<div className="wp-block-embed__learn-more">
<ExternalLink
href={ __(
'https://wordpress.org/documentation/article/embeds/'
Expand Down
5 changes: 0 additions & 5 deletions packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@
padding: 0 $grid-unit-10 2px;
}
}
.components-placeholder__learn-more {
.components-external-link {
color: var(--wp-admin-theme-color);
}
}
}


Expand Down

0 comments on commit 1f3e75a

Please sign in to comment.