-
Notifications
You must be signed in to change notification settings - Fork 4.5k
PostCommentsForm: Fix submit button width regression #69651
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
PostCommentsForm: Fix submit button width regression #69651
Conversation
273bc2d
to
74dc284
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Thanks for the PR! I think this style is needed for both the editor and the frontend.
@t-hamano Thank you for the feedback. I have updated the SCSS for both the frontend and editor. When you have a moment, Please check. |
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.
Thanks for the update!
We don't need to update editor.scss
because style.scss
is applied to both the editor and the frontend.
Additionally, it may be a good idea to add a comment that this style is meant to override the 100% width derived from the Button block.
Hi @t-hamano , I updated the PR with the feedbacks you gave. |
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.
LGTM 👍
Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Rishit30G <rishit30g@git.wordpress.org> Co-authored-by: jessedyck <jessedyck@git.wordpress.org>
I just cherry-picked this PR to the wp/6.8 branch to get it included in the next release: 1704d68 |
Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Rishit30G <rishit30g@git.wordpress.org> Co-authored-by: jessedyck <jessedyck@git.wordpress.org>
Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Rishit30G <rishit30g@git.wordpress.org> Co-authored-by: jessedyck <jessedyck@git.wordpress.org>
What?
Closes #69637
Fixes the regression where post comment submit button stretch to full width.
Why?
In WordPress 6.8, a change to button styling (width: 100%) caused an unintended side effect on
post-comments-form
submit button, making them stretch to full width.How?
Adds a targeted CSS rule to specifically override the width for submit button in
post-comments-form
Testing Instructions
Screenshots or screencast
Before
WordPress 6.7.2
Current PR
After this change, we would have the button's width like how it was in WordPress 6.7.2 as shown in the above 2 screenshots. I tested this at 1440px width in Chrome developer tools.