sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Inconsistent description and buttons on Course List block placeholder

Open renatho opened this issue 9 months ago • 0 comments

Steps to Reproduce

  1. Go to a page editor.
  2. Add the Course List block.

What I Expected

The placeholder should have a consistent description and buttons.

What Happened Instead

The placeholder description says "Choose a pattern for the query loop or start blank.", but it doesn't have a button to start blank.

I noticed that the button is hidden with CSS here. I think this solution is not ideal because we can hide other unintended buttons in the future or if it changes, it loses the effect.

So we should investigate a better way to implement this, also changing the placeholder description, or maybe just leave the button if the user decides to add block by block by themself? Checking quickly the Gutenberg code, it seems we don't have a way to customize it, so it would be safer to keep it.

If we decide to leave the "Start Blank", a bonus implementation would be trying to add other variations to start, including the course blocks.

Image

PHP / WordPress / Sensei LMS version

PHP 7.4 / WordPress 6.7 / Sensei LMS 4.24.5

Browser / OS version

Chrome / OSX

Screenshot / Video

Image

Context / Source

p6rkRX-7nh-p2

renatho avatar Feb 27 '25 18:02 renatho