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

Fix the outline box and block selector to make it clearer what block has been selected. #1524

Closed
10 of 12 tasks
alcurrie opened this issue Oct 23, 2018 · 16 comments
Closed
10 of 12 tasks
Assignees
Labels
Enhancement New feature or improvement of an existing one UX
Milestone

Comments

@alcurrie
Copy link

alcurrie commented Oct 23, 2018

As a AMP Stories author, I want the interface for the outline box and the block selector improved so that I can easily understand what block has been selected

@alcurrie alcurrie self-assigned this Oct 23, 2018
@alcurrie alcurrie added the UX label Nov 1, 2018
@alcurrie alcurrie removed their assignment Nov 1, 2018
@jwold
Copy link
Collaborator

jwold commented Nov 1, 2018

This one needs investigation to make sure the issue still exists with the new Gutenberg update, and posting some screenshots or a video showing what the problem is.

@miina
Copy link
Contributor

miina commented Nov 1, 2018

Note for dev: Development is blocked by UX/design work.

@miina miina added the FE label Nov 1, 2018
@jwold
Copy link
Collaborator

jwold commented Nov 2, 2018

In chatting with @alcurrie today here are a few issues we found:

  1. https://v.usetapes.com/9JGJJu3uE7
  2. https://d.pr/i/IG8PY3

There may be additional items to investigate, and there may be cross referenced items already called out in other issues, we'll circle back and validate what's unique to this ticket, and what might need to be added.

@jwold
Copy link
Collaborator

jwold commented Nov 6, 2018

Discussion from Weston: Need to solve the problem of layer + paragraph on top of layer + paragraph. Maybe 50% background layer.

@cathibosco cathibosco self-assigned this Nov 8, 2018
@cathibosco
Copy link

Will the blur effect as demonstrated on 1560 be a valid option?

It can be seen in Instagram on page loading.
0f4c4440-44de-447a-afc6-2d45b4067dc0

https://canddstudios.d.pr/NZvofY

@cathibosco
Copy link

cathibosco commented Nov 9, 2018

AC2 Here is a visual suggestion for highlighting the element we are actively editing....
Outline with a shadow for displaying on light or dark backgrounds....

amp-story-page-1-layer outlined

@cathibosco
Copy link

AC2 We are moving the selector above the Page 1 editor so that should help resolve any overlapping with editing...
(if I am understanding these AC's correctly)

@alcurrie
Copy link
Author

Per discussion at backlog grooming, I've updated the AC to reference the white shadow to be added behind the placeholder text (AC-6) and to reflect the requirement that in addition to the Blue selector, there should also be a hover indicator for blocks (AC-7) We discussed that the hover should be similar to the default hover functionality in Gutenberg. @cathibosco - can you review and provide design recommendations for how these elements should look.

I've also updated the AC to reference the forward/back arrows that display once element is selected.

cc. @westonruter @miina @mehigh

@alcurrie alcurrie removed their assignment Nov 18, 2018
@mehigh mehigh self-assigned this Nov 20, 2018
@mehigh
Copy link
Contributor

mehigh commented Nov 20, 2018

On making the text visible even on top of dark backgrounds (with black text) I've found the best results with using multiple text shadows, like this:
http://cloud.urldocs.com/c0f19d803ace
This shows an extreme case where the background has both light & dark shades.
And here's the same effect on top of a light gray color I inserted just for testing purposes - http://cloud.urldocs.com/ab49a834d832 - the text is still fully legible.

Here you can also see the blue outline I've added around it:
http://cloud.urldocs.com/1a2dd23af774
Out of the box Gutenberg ads this blue border when hovering an element, gray for selected and gone when typing.
I've made it so the blue stays while the element is selected and even while typing.
The border accompanies the white shadow of the black text in the rich editors in there.

Here's another case of black text on black background: http://cloud.urldocs.com/6bda0fc852a5

@mehigh
Copy link
Contributor

mehigh commented Nov 20, 2018

Addressed AC2 and AC6 in the referenced PR ^.

@mehigh
Copy link
Contributor

mehigh commented Nov 20, 2018

@miina AC 3:Add Blue outline what will show around Layer when the layer is selected
Selected Layer (ie thirds layer)
would work if we keep the is-selected class going or handling a similar class added by ourselves when we click one of the layers.

@miina
Copy link
Contributor

miina commented Nov 20, 2018

@mehigh There should be a default selector for it and we should actually already have a border, it's just not very visible:
screen shot 2018-11-20 at 2 14 15 pm

Here you can see the is-selected:
screen shot 2018-11-20 at 2 13 43 pm

Do you think that is sufficient to add the outline for the selected layer?

@mehigh
Copy link
Contributor

mehigh commented Nov 21, 2018

AC1's children:

AC2 - Text block selected border - Fixed in PR #1629 ( http://cloud.urldocs.com/7ec491663479 ).

AC3 - Layer selected border - Fixed in PR #1629 ( http://cloud.urldocs.com/7ec491663479 ).

AC4 - Story page selected border - Updated it to the same darker blue which is more visible - Fixed in PR #1629 ( http://cloud.urldocs.com/fed062238ec2 )

AC5 - Fixed with the already merged PR - this is available now on staging. ( http://cloud.urldocs.com/7ec491663479 )

AC6 - White shadow to placeholder text - Fixed in PR #1629 ( http://cloud.urldocs.com/47a76c9e79a5 ).

AC7 - The hover is visible on the other text blocks - Fixed in PR #1629 http://cloud.urldocs.com/c185bb2c62b4

So far AC2 (first level AC) is covered, as neither of these changes create any negative consequences with the other related work handled in other tickets.
Passing it on to code review and then it should be ready for QA.

@mehigh mehigh removed their assignment Nov 21, 2018
@miina
Copy link
Contributor

miina commented Nov 22, 2018

@mehigh Assigned you back for now (for the last change of removing blue outline from selected parent).

@mehigh
Copy link
Contributor

mehigh commented Nov 22, 2018

Handled the last feedback of not applying the blue border to the parents of the selected item and merged the PR. Moving this on to QA.

@mehigh mehigh closed this as completed Nov 22, 2018
@mehigh mehigh assigned alcurrie and unassigned mehigh Nov 22, 2018
@alcurrie
Copy link
Author

alcurrie commented Dec 3, 2018

Confirmed working as described in the AC: https://cl.ly/6f22f357812f

@westonruter westonruter added this to the v1.2 milestone May 21, 2019
@swissspidy swissspidy added Enhancement New feature or improvement of an existing one and removed AMP-Stories-Extension labels Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or improvement of an existing one UX
Projects
None yet
Development

No branches or pull requests

7 participants