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

feat: Show block remove button for empty (paragraph) block #6589

Merged
merged 1 commit into from
May 8, 2018

Conversation

tofumatt
Copy link
Member

@tofumatt tofumatt commented May 4, 2018

Shows the options and remove buttons on the right side for empty (paragraph) blocks.

Fix #6579.

Description

Allow users to remove empty paragraph blocks using visual tools/mouse by clicking the remove button.
I also renamed a variable for extra clarity because it confused me when reading through the code.

How has this been tested?

Tested in browser (Firefox and Chrome); screenshot attached.

Screenshots

2018-05-04 15 00 43

Types of changes

Feature simply enables the toolbar for all components, not special-casing the empty paragraph.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@tofumatt tofumatt requested a review from gziolo May 4, 2018 14:07
@youknowriad youknowriad added the Needs Design Feedback Needs general design feedback. label May 4, 2018
@gziolo gziolo requested review from karmatosed and jasmussen May 8, 2018 14:01
@jasmussen
Copy link
Contributor

No objections. Don't love it, but I'm amenable to the arguments for having it — consistency definitely is key. 👍 👍

Should we revisit the recent icons on the right of the appender? I like them and use them — but we do have a lot of icons. Could we reduce that to two?

@gziolo
Copy link
Member

gziolo commented May 8, 2018

Yes, 2 makes more sense, what about three dots and dropdown? Is it useful for empy block?

@jasmussen
Copy link
Contributor

what about three dots and dropdown?

If the end goal is consistency, seems like we should keep that, especially if the ellipsis could be made extensible.

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@gziolo gziolo added [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... and removed Needs Design Feedback Needs general design feedback. labels May 8, 2018
@gziolo gziolo added this to the 2.9 milestone May 8, 2018
@jasmussen
Copy link
Contributor

Probably good to wait for Tammie's final call, though!

@gziolo
Copy link
Member

gziolo commented May 8, 2018

And confirmation that we want one block icon less :)

@tofumatt tofumatt merged commit 268b871 into master May 8, 2018
@tofumatt tofumatt deleted the feat/6579-trash-paragraph-block branch May 8, 2018 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants