woocommerce-blocks icon indicating copy to clipboard operation
woocommerce-blocks copied to clipboard

Filter by Attribute border styles are not applied to the block

Open Aljullu opened this issue 3 years ago • 1 comments
trafficstars

It looks like with the recent style updates, the border styles for the Filter by Attribute block no longer work. This affects both display modes: List and Dropdown.

To reproduce

  1. Add the Filter by Attribute block to a post or page.
  2. In the sidebar, change the border styling.
  3. Notice nothing changes in the block.

imatge

Expected behavior

Any of these two:

  • the block should update and show border styling accordingly
  • or the option to set it shouldn't be available in the UI

Additional context

@gigitux @albarin do you have any opinions on this?

I'm leaning towards completely removing the border styling from that block. Some reasons for that:

  • in the past, it was only possible to change the border of the dropdown input, but it didn't work when display style was set to List, so that was confusing
  • the border styling options were only available in the feature plugin, but we never graduated them to WC core because they rely on experimental APIs
  • the Elements API might be a better fit for this use case (changing the border of the input field/checkboxes) than block global styles

Aljullu avatar Sep 21 '22 15:09 Aljullu

It makes sense to me. Should we add the label good first issue? I don't think that it is hard to remove, and it could be a good issue to show what is the Global Styles and how it works

gigitux avatar Sep 22 '22 05:09 gigitux

It makes sense to me. Should we add the label good first issue? I don't think that it is hard to remove, and it could be a good issue to show what is the Global Styles and how it works

Good idea. Done!

Aljullu avatar Sep 23 '22 12:09 Aljullu

Hi @Aljullu - So I am just taking a look at this and I am only seeing the Border settings in the Styles section of the Inspector controls but in your screenshot, it seems to be in the Settings section of the Inspector controls.

I am not sure if some in GB changed to cause the Border controls to move to the Settings section since this issue was reported. But it still has the same purpose so I am assuming we want to "also" remove it from there?

roykho avatar Jul 19 '23 13:07 roykho

In previous versions of Gutenberg, the tabs Settings and Styles didn't exist. Instead, everything was displayed together. I guess my screenshot is from that time.

But it still has the same purpose so I am assuming we want to "also" remove it from there?

Yes, I would say so. Thanks for looking into this!

Aljullu avatar Jul 19 '23 14:07 Aljullu