Skip to content
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

Search Block: Global border style settings mismatch with block style #68195

Open
3 of 6 tasks
benazeer-ben opened this issue Dec 20, 2024 · 1 comment
Open
3 of 6 tasks
Labels
[Block] Search Affects the Search Block - used to display a search field [Type] Bug An existing feature does not function as intended

Comments

@benazeer-ben
Copy link
Contributor

Description

When applying global border style settings to the Search Block in WordPress, the styles set in the global settings do not align with the actual styles applied to the block on the page.

This mismatch results in inconsistent styling, causing the border styles (e.g., width, color, radius) defined globally to differ from those displayed on the block.

Step-by-step reproduction instructions

  1. Enable Global Styles:
  • Navigate to the WordPress Site Editor (Appearance > Editor).
  • Click on the "Styles" icon in the top-right corner.
  1. Modify Global Border Settings:
  • Select the "Blocks" tab.
  • Choose the Search Block.
  • In the block settings panel, go to the Border section.
  • Set border properties such as:
  • Border Width: e.g., 4px.
  • Border Color: e.g., #000000.
  • Border Radius: e.g., 8px.
  1. Apply and Save Changes:
  • Click "Save" to apply the global style changes.
  1. Add a Search Block to a Page:
  • Navigate to the WordPress block editor and add a Search Block to a post or page.
  • View the block's border style in the editor.
  1. Preview the Page:
  • Save the post or page.
  • Preview it in the front-end of the website.
  1. Compare Global Styles with Block Styles:
  • Check the block's rendered styles in the browser.
  • Verify the global border settings and block styles applied to the block.

Screenshots, screen recording, code snippet

Screenshare.-.2024-12-20.7_22_07.PM.mp4

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@benazeer-ben benazeer-ben added the [Type] Bug An existing feature does not function as intended label Dec 20, 2024
@hanneslsm
Copy link

Related (/same?): #51617

@t-hamano t-hamano added the [Block] Search Affects the Search Block - used to display a search field label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Search Affects the Search Block - used to display a search field [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants