-
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
[ Navigation block ] Remove unnecessary white spaces. #67999
[ Navigation block ] Remove unnecessary white spaces. #67999
Conversation
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. |
Thanks for the contribution. From what I can tell this change doesn't seem to fix the issue. I think the extra space come from the Interactivity API's gutenberg/packages/block-library/src/navigation/index.php Lines 504 to 505 in 9cba28a
It seems like a very minor issue, but I'll cc @luisherranz, just in case it's a quick one to fix. |
Maybe it's the way we are formatting the directives in PHP using line breaks instead of spaces? |
Actually, I take it back, sorry for the incorrect ping @luisherranz . It is caused by the navigation block's code. I made a PR for it - #68161. I'll close this one. Possibly there is still an issue in the interactivity API, hard for me to say. On first process of the directive it trims the class attribute and removes the extra space the nav block was outputting, and assigns the trimmed value back to gutenberg/packages/interactivity/src/directives.tsx Lines 370 to 372 in dea955c
Then on clicking the button the extra space seems to come back again via the gutenberg/packages/interactivity/src/directives.tsx Lines 374 to 376 in dea955c
It seems like Anyway, after calling this low priority I've spent time debugging it now 🤦 |
@talldan Thank you for checking and addressing the issue ( ̄人 ̄) |
What?
Remove unnecessary white spaces from navigation block's class.
Why?
The navigation block's class name contains unnecessary spaces.
How?
Delete space ( add .trim(); )
Testing Instructions
Screenshots or screencast
After