Problem/Motivation

When using Drupal's toolbar as a sidebar, and then clicking on the name of current workspace, the area above the sidebar toolbar is unclickable, although visually it look like it should be:

(red mark - unclickable vs. green mark - clickable)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

shaal created an issue. See original summary.

amateescu’s picture

poojakural’s picture

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
Status: Active » Needs review
StatusFileSize
new737 bytes

Toolbar css causing issue. Please find the attachment and SS

priyanka.sahni’s picture

Assigned: Unassigned » priyanka.sahni
priyanka.sahni’s picture

Assigned: priyanka.sahni » Unassigned
Status: Needs review » Needs work
StatusFileSize
new2.15 MB
new1.89 MB

Verified and tested by applying the patch#5.It is not fixed.

Steps to test-
1. Go to the admin site.
2. Go to admin/modules -> Enable the workspace.
3. Click on vertical scrollbar.
4. Go to admin/content -> Click on Live -> Click on Stage.

Refer to the videos attached

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
Status: Needs work » Needs review
StatusFileSize
new13.03 MB
new8.49 MB
new7.37 MB
new19.5 MB
new1.46 KB

Fixed. Tested on Seven, Bartik, Classy, Claro, Umami

Step to Test:

1. Go to the admin site.
2. Go to admin/modules -> Enable the workspace.
3. Click on vertical scrollbar.
4. Go to admin/content -> Click on Live -> Click on Stage.

Please refer the attached videos and patch

pankaj.singh’s picture

Assigned: Unassigned » pankaj.singh
pankaj.singh’s picture

Assigned: pankaj.singh » Unassigned
StatusFileSize
new8.54 MB
new11.55 MB
new8.96 MB
new11.94 MB
new8.3 MB
new10.41 MB

Just noticed the issue "Unclickable area to switch to a workspace" is only reproducible while the menu items are in the vertical orientation.

Tested the patch from #9 on 8.8.5, patch worked.

Also, I found a similar issue on 9.1.x, applied the same patch and it worked for me. Please refer to the attached video clips.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

shaal’s picture

Status: Needs review » Reviewed & tested by the community

Thank you for working on this, and adding the video files that demonstrate before/after changes.

I used simlpytest.me with Drupal 8.9.1, and compared Umami vs Umami with patch #9
This patch works well and fixes the problem!

Btw, I discovered a new issue that can be seen also in the videos, after the dialog shows up to confirm you want to switch workspaces, it messes up the order of toolbar menu and workspace menu, I opened a separate issue for that - #3152830: After closing workspaces dialog the vertical admin toolbar is displayed on top of workspaces interface.

amateescu’s picture

Aren't those styles there for a reason? I think we need an opinion from someone who was involved in writing the CSS for core's toolbar.

lauriii’s picture

Would be great to get a review from toolbar subsystem maintainer on why this CSS was introduced in the first place.

shaal’s picture

nod_’s picture

I had a look and went through the history a bit. It seems like in #2100133: The Toolbar tray box shadow disappears at small viewports sizes on Chrome, on a Mac, under unpredictable conditions the styling for the shadow moved from the pseudo-element to the
actual element. Meaning that the whold lining:before pseudo element is unnecessary.

Which mean the patch is ok, and we could even remove the 2 rules around it that deal with lining:before.

amateescu’s picture

Thanks @nod_, that's very helpful!

Which mean the patch is ok, and we could even remove the 2 rules around it that deal with lining:before.

Done :)

amateescu’s picture

StatusFileSize
new1.87 KB

Attaching a patch for 8.9.x, which doesn't have the stable9 theme.

nod_’s picture

RTBC +1

lauriii’s picture

Status: Reviewed & tested by the community » Needs review

If we are going to delete dead code as part of this too, can we delete this too?

.toolbar .toolbar-tray-vertical > .toolbar-lining {
  min-height: 100%;
}

And how about this:

.toolbar-loading.toolbar-horizontal .toolbar .toolbar-bar .toolbar-tab:last-child .toolbar-tray .toolbar-lining {
  width: 999em;
}

There's also this in toolbar.theme.css which I suspect we might be able to remove:

.toolbar-horizontal .toolbar-tray > .toolbar-lining {
  padding-right: 5em; /* LTR */
}
amateescu’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new5.8 KB
new4.61 KB
new3.85 KB
new3.05 KB

Thanks for the review, @lauriii! I did all the changes from #21 and also tested manually and didn't see any visual differences for the toolbar, with and without the patch.

  • lauriii committed 7cb77c2 on 9.1.x
    Issue #3092551 by amateescu, poojakural, pankaj.singh, priyanka.sahni,...

  • lauriii committed d6d3b9d on 9.0.x
    Issue #3092551 by amateescu, poojakural, pankaj.singh, priyanka.sahni,...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Even though the rules I mentioned in #21 could be unnecessary, I decided to commit #18 instead of #22 to keep the changes only to the pseudo element.

Committed 8790ee9 and pushed to 9.1.x, 9.0.x and 8.9.x. Thanks!

  • lauriii committed f6356c6 on 8.9.x
    Issue #3092551 by amateescu, poojakural, pankaj.singh, priyanka.sahni,...

Status: Fixed » Closed (fixed)

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