You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Social Icons having top and bottom margin issue in the editor with classic themes #69098
In #64883, the element to which the useBlockProps hook applies was changed from the li element to the button element. As a result, the .wp-block CSS class was applied to the button element, causing the element to have unintended default margin for the classic theme:
Activity
singhakanshu00 commentedon Feb 7, 2025
Hi @viralsampat-multidots
Upon investigation, this problem occurs for the theme from Twenty Ten to Twenty Twenty due to styles coming from classic.css file
Will raise the PR with the solution for the fix.
t-hamano commentedon Feb 10, 2025
Thanks for the report.
I think this is a regression caused by #64883.
In #64883, the element to which the useBlockProps hook applies was changed from the li element to the button element. As a result, the .wp-block CSS class was applied to the button element, causing the element to have unintended default margin for the classic theme:
gutenberg/packages/edit-post/src/classic.scss
Lines 24 to 30 in 594a4d8