-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed: Fix failure placeholder alignment/sizing #19673
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,10 @@ | |
} | ||
} | ||
|
||
.components-base-control__field { | ||
margin-bottom: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This removes the bottom margins of the input fields, allowing the Inputs + Button to align correctly. |
||
} | ||
|
||
.wp-block-table__placeholder-button { | ||
margin-top: auto; | ||
margin-right: auto; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
} | ||
} | ||
|
||
.components-placeholder__error, | ||
.components-placeholder__instructions, | ||
.components-placeholder__label, | ||
.components-placeholder__fieldset { | ||
|
@@ -74,6 +75,11 @@ | |
margin-bottom: 1em; | ||
} | ||
|
||
.components-placeholder__error { | ||
margin-top: 1em; | ||
width: 100%; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Required to render underneath the help text, considering the |
||
} | ||
|
||
.components-placeholder__preview img { | ||
margin: 3%; | ||
width: 50%; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that the precedent existed previously, but this change contributed further to it:
components-placeholder__instructions
is not a valid class name to use in this context.https://github.com/WordPress/gutenberg/blob/master/docs/contributors/coding-guidelines.md#naming
This feels like something where we should be taking advantage of a prop offered by the
Placeholder
component, and if those props are insufficient, then we need to address this atPlaceholder
, and not reuse these classes in an ad hoc manner.