Overview

I'm adding a component to a slot that has a placeholder. When I'm dragging the component over the slot, the slot starts flickering.

Another example taken from #3481347: Canvas flickers when adding a component to an empty slot when the canvas is empty: It may or may not have the same root cause.

Screenshot

Proposed resolution

User interface changes

New and improved look for Root overlay

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lauriii created an issue. See original summary.

wim leers’s picture

cosmicdreams’s picture

In general, the dropzone for the slot is relatively small / short? Are we opposed to making the dropzone taller (have more height)?

wim leers’s picture

#3: are you referring to empty slots, or to already-populated slots?

gauravvvv’s picture

Version: 0.1.0-alpha1 » 0.x-dev
Assigned: Unassigned » gauravvvv
gauravvvv’s picture

Assigned: gauravvvv » Unassigned

I am unable to access these demo components. Is there a way to place them on the page?

Only local images are allowed.

cosmicdreams’s picture

#4 I am referring to the empty slots.

Sorry @wim leers I just know saw you asked me that.

kristen pol’s picture

Thanks for reporting... I saw this a lot but forgot to add an issue.

traviscarden’s picture

I've marked #3481347: Canvas flickers when adding a component to an empty slot as a duplicate of this issue and added the screenshot and additional detail from it to this issue's summary. I don't know if they have the same root cause. If they turn out not to and can't be easily solved at the same time, we can re-open that issue.

jessebaker’s picture

Assigned: Unassigned » jessebaker

balintbrews made their first commit to this issue’s fork.

  • jessebaker committed 9436ddca on 0.x
    Issue #3476354 by jessebaker, balintbrews, gauravvvv, cosmicdreams,...
jessebaker’s picture

Assigned: jessebaker » Unassigned
Issue summary: View changes
Status: Active » Fixed
StatusFileSize
new8.2 MB
lauriii’s picture

Nice! This definitely makes creating pages from scratch feel more polished! Few refinements we could do in a follow-up:

  1. We should probably use blue color for the border instead of green because the green is supposed to be signifying global regions (i.e. change may have implications outside of the current page)
  2. Root seems a bit technical. How about just calling it "Page"?
  3. This is more of a UX challenge but documenting it here. The current blue background with drops doesn't make it super clear that this is the area where you're supposed to be dragging components in.
wim leers’s picture

THOSE COLOR CODE AFFORDANCES! 🤩👏

wim leers’s picture

Status: Fixed » Patch (to be ported)
Issue tags: +Needs followup

Cross-posted with @lauriii's #15. I don't think people will see #15 while this is marked "fixed" 😅

jessebaker’s picture

The root concept is going away once there is more than one region and will be replaced with a 'content' region - I think perhaps that can be named after the region. I made it green for now as it's closest to what a region will be. Blue = component, purple = component slot and green = region. I think that's correct based on the designs.

wim leers’s picture

Assigned: Unassigned » lauriii
Status: Patch (to be ported) » Needs review

It sounds like @jessebaker's saying in #18 that actually there is no need for a follow-up.

Let's see if @lauriii agrees.

lauriii’s picture

Issue summary: View changes
StatusFileSize
new41.7 KB

#18: That description does not exactly match the use of the colors defined by design. Even though the root is close to a region, it doesn't cascade outside the current page. Therefore we should not be using green for the root as green is supposed to signify that changes inside that area cascade outside the current page.

Blue vs purple is supposed to signify components vs elements. We don't really have elements at this point so pretty much everything should be either purple or green.

Slots don't have their own color at the moment; they should inherit the color of their parent. In this case since we're using components, they should be purple.

jessebaker’s picture

Not saying we shouldn't follow up at all, just that it's a bit premature at this point as the data model is in the process of changing.

At the moment root = green, component = blue, slot = purple but with the new data model we will have a data model that represents regions, components, elements, slots and the current page/content area so all the styling and the data it is based on will be changing. I'm not sure it makes sense to have a specific issue just for changing the colours now rather than just applying the right colours once we have the right data model underpinning it all.

I think once the data model is in, it will be trivial to attribute the right colours to the right things and then we can go through with UX with working examples to iterate on.

wim leers’s picture

Assigned: lauriii » jessebaker
Status: Needs review » Patch (to be ported)
Issue tags: -Needs followup

I'm writing the XB blog post for week 29 and … this issue landed in that week, yet it's still open 😅

Everything in #21 actually kinda perfectly predicts @jessebaker's very own #3498819-5: [Needs design] Adjust representation of Regions in the Layers UI 😅

I think that means this is fine to close? 😇

jessebaker’s picture

Assigned: jessebaker » Unassigned
Status: Patch (to be ported) » Fixed

Yup, closing this. #3498819 can pick up the design related follow ups.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.