No way to undo headline formating
If you write a text with some headlines and later want to revert a headline to normal text there is no way beside deleting the line and write it again.
All other formatting options can be undo by clicking it again (bold, italic, bullet points,...). For headlines I only have the option to chose another headline level but not to go back to "normal text":
You can untoggle the heading by just selecting the same heading level from the menu. We used to have a button to reset to paragraph but that was removed during a design review iirc.
cc @nextcloud/designers
I think something akin to "paragraph" should definitely be in that menu, along with all other text styles such as quote, code block, etc.
This would:
- Clear up space in the toolbar
- Make those functionalities clearer because those buttons would be labeled
ref (notion):
The problem is that the trigger button for the menu currently indicates the state of the current cursor. If we add more entries to that and still use that indication the headline actions would be too hidden i think.
What about adding a label like Notion so that it's clearer that text styles and other blocks are underneath that menu? I think there would be a lot to gain from this simplification. Especially given the current amount of unlabeled buttons.
I think this is something where some mockups could help to visualize how that could fit in the current UI. Especially on mobile we are quite limited on how much space we have there.
Also https://github.com/nextcloud/text/issues/2836 might have a few points to consider when thinking about redesigning the menu bar.
So in my opinion actually the chosen Headline should be selected so that if you click on it, it gets unselected, something like this:
| H2 selected | No headline selected |
|---|---|
Then you can disable the heading by simply clicking on it. WDYT @marcoambrosini @juliushaertl ? :)
@szaimen as a quick fix, yes that would work. But I'd still think that it would be nicer to have a text "styles" menu.