woocommerce / storefront

Official theme for WooCommerce
https://wordpress.org/themes/storefront/
974 stars 470 forks source link

Indented lists are displayed flat in the block editor #2063

Open jorgeatorres opened 2 years ago

jorgeatorres commented 2 years ago

Describe the bug

When a post contains a list with sublists, everything is displayed as a flat list in the editor, despite the proper HTML being generated, and thus appearing fine on the frontend.

Might be related to #2056 (?).

Isolating the problem (mark completed items with an [x]):

To Reproduce

Steps to reproduce the behavior:

  1. Enable a theme other than Storefront.
  2. Go to Posts > Add New.
  3. Create a new post with a list an indent one of the items (using Space) to start a sublist: Screenshot 2022-11-02 at 14 40 57
  4. Save the post.
  5. Enable the "Storefront" theme.
  6. Go back to the post you've just created (on the admin).
  7. The list is displayed as a flat list: Screenshot 2022-11-02 at 14 40 02
  8. Confirm that the HTML is correct... Screenshot 2022-11-02 at 14 40 21

    2022-11-02 at 14.40.21.png…]()

  9. ... and that things display fine on the frontend. Screenshot 2022-11-02 at 14 39 57

Screenshots

If applicable, add screenshots to help explain your problem. (See above)

Expected behavior

Lists should respect indentation in the block editor.

Browser Environment

Please provide as much detail as possible about your testing environment.

WordPress Environment

Please provide relevant details of your WordPress setup and server environment.

``` Copy and paste the system status report from WooCommerce > System Status in WordPress admin. ```
dinhtungdu commented 2 years ago

Hi @jorgeatorres,

Thanks so much for reporting this issue! I can confirm this issue. I tested it on my end and got the same issue as you described.

Might be related to https://github.com/woocommerce/storefront/issues/2056 (?).

Look like https://github.com/woocommerce/storefront/issues/2056 relates to order list style instead of indentation, so I will keep both issues open for now.