verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

UI/UX oddity: inline code vs code block #117

Closed tremby closed 2 years ago

tremby commented 2 years ago

I'm not sure whether to call this a bug or a feature request.

The docs say that the "formatting" dropdown supports h1 to h6, blockquote, paragraph, and inline code.

I find this very weird. All those other things are block-level formatting and make sense in a dropdown together, but inline code is an outlier, applying to a range of text rather than a whole block. I think this leads to a weird UX.

On the other hand, code block would absolutely belong in that dropdown.

engram-design commented 2 years ago

Yeah, you're probably not wrong here - I think my thinking was just trying to clean up the buttons.

The eventual plan will be allowing everyone to create and group any buttons into dropdowns as well, so you've got much more control over what's shown.

tremby commented 2 years ago

Perhaps an interim solution would be to allow code block in the dropdown? Both are allowed outside the dropdown already.

engram-design commented 2 years ago

Just swapped that out of the craft-4 branch!

tremby commented 2 years ago

Thank you!