Overview
The components have several different states that need to be implemented. We should consider at least the following states:
- Hover
- Active/Focus
- Drag
User interface changes
Design
Implementation
From #9:

| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2024-07-17 14.53.29.gif | 891.53 KB | jessebaker |
| Screenshot 2024-07-11 at 1.32.18 PM.png | 1.18 MB | lauriii |
Issue fork experience_builder-3460783
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
Comment #2
lauriiiComment #3
lauriiiComment #6
larowlan@lauriii is that screenshot correct - its the same one as #3460955
Comment #7
larowlanAh I see, same screenshot, different feature, ignore me
Comment #8
wim leersComment #9
jessebaker commentedImplementation:
Comment #10
bnjmnmAlthough we're waiting to take care of a few e2e things in gitlab, component/unit tests are working fine and these should get at least surface level testing
Comment #11
wim leers#9: updated issue summary 👍 Also … 🤩
Needs tests per #10.
Comment #12
jessebaker commentedI've taken a stab at making a Cypress component test - I'm not sure how to get around how much fake/boilerplate code I had to wrap it all in to make it work though.
Perhaps a candidate to replace with a proper e2e test at some point.
Comment #13
jessebaker commentedComment #14
jessebaker commentedCurrent status:
Due to the overlap in functionality (regarding positioning the UI elements over components in the preview), the code in the MR for this issue (!93) was used as the base for !99 which is addressing #3460952.
That means that once !99 is approved and merged, this work will also be merged in as part of that.
Or, if this MR gets approved, it can be merged first independently.
Comment #15
wim leersSo based on #14, it sounds like it doesn't matter which lands first:
That first bullet is preferable, because it makes the individual MRs/commits to
0.xsimpler.Is that right?
Comment #16
jessebaker commented@Wim Leers you are correct.
Comment #17
bnjmnmThe automated tests prompted me to run a manual A11y check on on the page
There is an AA contrast violation on
div:nth-child(1) > ._previewContainer_14ww3_31 > ._xbComponentToolbar_lmyju_17.rt-Box[data-state="closed"] > ._nameTag_1uhn3_1._selected_1uhn3_11on
(obviously these are hashed classnames but it is safe to assume they are part of the NameTag component introduced in this issue.
Lets also dump the Outline.cy.jsx test entirely and just add a few lines to existing e2e tests.
Comment #19
hooroomooComment #20
bnjmnmComment #22
bnjmnmLooks good - this is in!
Comment #23
bnjmnm