Description
Border values set using border-${side} without explicitly defining a width property are assigned a preset border width on the frontend, regardless of the border color settings. In the editor preview, this behaves correctly and no unintended border is applied. However, on the frontend, a default border width is rendered unexpectedly.
This behavior appears to be triggered by theme patterns and was working correctly prior to WordPress 6.9.4.
Expected Behavior:
If border-${side} is set without a width property, no preset border width should be applied unless explicitly defined.
Actual Behavior:
A default border width is applied on the frontend, causing unintended borders to appear, while the editor preview renders correctly.
Step-by-step reproduction instructions
- Install and activate the FotaWP theme by CozyThemes.
- Go to the Site Editor or Page Editor.
- Open the Block Inserter and navigate to the Patterns tab.
- Search for the FAQ Block pattern.
- Insert the pattern into the page.
Save the page and view it on the frontend to observe the issue.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
Border values set using border-${side} without explicitly defining a width property are assigned a preset border width on the frontend, regardless of the border color settings. In the editor preview, this behaves correctly and no unintended border is applied. However, on the frontend, a default border width is rendered unexpectedly.
This behavior appears to be triggered by theme patterns and was working correctly prior to WordPress 6.9.4.
Expected Behavior:
If border-${side} is set without a width property, no preset border width should be applied unless explicitly defined.
Actual Behavior:
A default border width is applied on the frontend, causing unintended borders to appear, while the editor preview renders correctly.
Step-by-step reproduction instructions
Save the page and view it on the frontend to observe the issue.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.