Navigation block overlay padding zero clamp calculation fails for zero values #61398
Labels
[Block] Navigation
Affects the Navigation Block
Needs Testing
Needs further testing to be confirmed.
[Status] In Progress
Tracking issues with work in progress
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Bug
An existing feature does not function as intended
Description
The padding on the navigation responsive container is calculated using a clamp function.
The clamp calculation uses the
--wp--style--root--padding-xyz
- which fails when any of the units are set to zero (0)Our site don't require a value for top or bottom.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5.2 running our Custom block theme
Gutenberg - Version 18.2.0
Mac/Windows, iOS
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: