-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Placeholder: Add a box-sizing border-box to input fields #42294
Conversation
Size Change: +44 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
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.
Oof, this is a pretty unpleasant problem we have here 😅 I'm surprised it never came up before. Thanks for taking the initiative to fix.
I think we're going to need to address these box-sizing issues in a somewhat systematic way, so I posted #42415 to summarize the problem and propose an approach to solve it across components.
I think a good place to start with this PR is to @include
the reset
mixin at the top level of .components-placeholder
. What do you think?
Pinging @ciampo for thoughts on the #42415 approach as well.
I agree with you. But It might be better to discuss how to handle |
⭐ Update
|
I'll close this PR since #42889 has been merged. |
Part of #41961.
What?
This PR applies
box-sizing: border-box
to input elements (TextControl
,TextareaControl
) placed onPlaceholder
component.Why?
In the post editor,
box-sizing: border-box
is applied to the input elements becauseform.css
is loaded (Perhaps this is not the expected style.).In the site editor, the input elements overflows because
form.css
is not loaded.How?
I think
box-sizing: border-box
should be applied to the input element just as Button component has.However, I limited it to elements within
Placeholder
component only to minimize the scope of influence.For now, this response will only improve the table block placeholder layout.