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

can't add a custom CSS class to a page list item #50474

Open
pbiron opened this issue May 9, 2023 · 0 comments
Open

can't add a custom CSS class to a page list item #50474

pbiron opened this issue May 9, 2023 · 0 comments
Labels
[Block] Page List Affects the Page List Block [Type] Bug An existing feature does not function as intended

Comments

@pbiron
Copy link

pbiron commented May 9, 2023

Description

Page List iIems have an Advanced section with has a Additional CSS Class(es) setting. However, typing something in that field is not saved when the post or template/template-part (in Site Editor) is saved.

Step-by-step reproduction instructions

  1. in site editor, edit a template/template-part and add a Navigation block (e.g., with a Page List block child)
  2. select one of the Page List Item blocks
  3. in the Advanced section, enter something in the Additional CSS Class(es) field
  4. save the template/template-part
  5. select the the Page List Item you added the class to and note that it has no additional class(es)

The same can be done in the post editor with the same results.

Screenshots, screen recording, code snippet

page-list-item-css-bug

here's a screengrab showing that the Save button doesn't become enabled when typing something in the Additional CSS Class(es) field, which suggests that somewhere the block isn't sensing that that field's value has changed.

Environment info

WP 6.2, w/o GB plugin active
Chrome 113.0.5672.93 (Official Build) (64-bit)
Windows 11

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

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Block] Page List Affects the Page List Block labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Page List Affects the Page List Block [Type] Bug An existing feature does not function as intended
2 participants