Olivero's header navigation (at wide widths) sits on top of the jQuery UI overlay that can appear in certain situations.

Testing instructions

  1. Edit an article
  2. Click the preview button to enter the the node preview
  3. Attempt to navigate away from this page
  4. Note that a modal pops up informing the user that their change will not be saved. Also notice the overlay that appears underneath is not under the header.

Issue fork drupal-3214191

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

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new1.18 KB
new122.99 KB

Attached patch and after patch screenshot for reference.

neslee canil pinto’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new295.31 KB
new301.46 KB

Can confirm that this bug exists, and the patch from #2 solves it.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/themes/olivero/css/components/header-navigation.css
    @@ -130,6 +130,14 @@ body.toolbar-horizontal.toolbar-fixed .header-nav {
    +.ui-widget-overlay {
    +  z-index: 105;
    

    Based on https://www.drupal.org/docs/theming-drupal/z-indexes-in-drupal-8, this should have z-index of 1259

  2. +++ b/core/themes/olivero/css/components/header-navigation.css
    @@ -130,6 +130,14 @@ body.toolbar-horizontal.toolbar-fixed .header-nav {
    +.ui-widget.ui-widget-content {
    

    Based on https://www.drupal.org/docs/theming-drupal/z-indexes-in-drupal-8, we should probably set the z-index on .ui-dialog

indrajithkb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.13 KB
new1005 bytes
new62.55 KB

Hi @Gauravmahlawat thanks for the patch #2

Hi @lauriii thanks for the points, adding the patch resolving the #4 comments.

SS after patch:

image

gauravvvv’s picture

Status: Needs review » Reviewed & tested by the community

This seems fine to me. Moving to RTBC

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/olivero/css/components/header-navigation.css
--- a/core/themes/olivero/css/components/header-navigation.pcss.css
+++ b/core/themes/olivero/css/components/header-navigation.pcss.css

Since these styles are more related to the jQuery UI widget overlay and dialog, we should probably move these to file that is more specific to those.

avpaderno’s picture

Title: Olivero: header is breaking on quitting live preview » Header is breaking on quitting the live preview
sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new1.32 KB

Providing updated version of patch #9 as per comment #7, Please review the patch

avpaderno’s picture

Title: Header is breaking on quitting the live preview » Header breaks when dismissing the live preview
manojithape’s picture

Assigned: Unassigned » manojithape
manojithape’s picture

Assigned: manojithape » Unassigned
Status: Needs review » Needs work
StatusFileSize
new49.48 KB

@Sakthivel M: At the time of applying patch #9 getting an error and not able to apply the patch on drupal 9.3.x dev version and Olivero 9.3.0 dev version. Please refer attached screenshot.

sakthivel m’s picture

Status: Needs work » Needs review
StatusFileSize
new1.33 KB

#13 Re-created patch, Please review it.

manojithape’s picture

Assigned: Unassigned » manojithape
manojithape’s picture

Assigned: manojithape » Unassigned
Status: Needs review » Reviewed & tested by the community

Verified and tested patch#13 on the drupal 9.3.x-dev version and Olivero 9.3.0-dev version. Patch applied successfully and looks good to me.

Testing Steps:

  1. Log in as an Administrator user.
  2. Install drupal 9.3.x-dev version.
  3. Go to Appearance -> Set Olivero theme as admin and default theme
  4. Add the content and click on "PREVIEW"
  5. Click on any menu and observe the header breaks when dismissing the live preview

Expected Result:
Leave Preview pop-up should be displayed properly without breaking the header.

Actual Results:
After applying the patch proper leave preview pop-up displayed without breaking the header.
Please refer attached screenshot.

Moving this ticket to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 13: 3214191.13.patch, failed testing. View results

indrajithkb’s picture

Status: Needs work » Needs review

HI @Sakthivel M thanks for the patch, just re-applying the patch here please review.

vikashsoni’s picture

StatusFileSize
new229.56 KB

@Sakthivel thanks for the patch for ref sharing screenshot

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new428.2 KB
new433.34 KB

Verified and tested patch #13.
Patch applied successfully and looks good to me.

Testing Steps:
# Go to Appearance -> Set Olivero theme as admin and default theme
# Add the content and click on "PREVIEW"
# Click on any menu and observe the header breaks when dismissing the live preview

Expected Results:
# After applying the patch, the Leave Preview pop-up should be displayed properly without breaking the header.

Actual Results:
# Before applying the patch, the Leave Preview pop-up looks broken

Please refer attached screenshots.
Looks good to me.
Can be a move to RTBC.

mherchel’s picture

Priority: Normal » Minor
Status: Reviewed & tested by the community » Needs work

Note that jQueryUI is being deprecated. Thanks for working on this!

I left a comment in the MR.

xjm’s picture

Priority: Minor » Major

jQuery UI is indeed being deprecated, but there will still be a modal dialog, and since jQuery UI dialog is our model in terms of the functionality and accessibility we want, there's a good chance of the same bug existing then.

Most alignment issues are normal bugs, but this one is actually major IMO because it is hiding the most critical information on the screen (what it is you're being asked to do, and therefore the meaning of the two buttons available to you).

xjm’s picture

Title: Header breaks when dismissing the live preview » Header obscures modal dialog content
xjm’s picture

I think #3192638: Header block overlapping popup is probably a duplicate of this issue.

mherchel’s picture

mherchel’s picture

Title: Header obscures modal dialog content » Olivero: Header obscures jQueryUI overlay
Issue summary: View changes
StatusFileSize
new614.64 KB

Updating issue summary

mherchel’s picture

Status: Needs work » Needs review

I updated the merge request so that the CSS is only loaded when the core/drupal.dialog library is loaded.

This should be good to go.

Tugboat preview: https://3214191-header-jqueryui-overla-tmpp3tjf6megkaytxpzgbtg6zbdwhcuk....

thejimbirch’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new14.16 MB
new876.17 KB

Followed the testing instructions on the provided Tugboat link.

1. I logged in as an administrator.
2. From the Content screen I edited an article.
3. From the article form I chose the Preview button.
4. From the Preview screen, I tried to navigate away from the page by clicking on a menu link.
5. The modal popped up and was over the header.

Screen recording of these steps:

Screen recording of validation steps

Since I had the mobile menu in the first steps, I repeated with the browser wider to validate the overlay covers the header with the full menu.

Screen recording of validation steps

Marking at RTBC

  • lauriii committed 78cb935 on 9.3.x
    Issue #3214191 by Indrajith KB, Sakthivel M, Gauravmahlawat, mherchel,...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Committed 07c0ba8 and pushed to 9.3.x. Thanks!

lauriii’s picture

StatusFileSize
new801 bytes

Here's interdiff for a small fix applied on commit.

Status: Fixed » Closed (fixed)

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

kristen pol’s picture

It would be good if credits for this related issue could be added here as I just closed that one out as a duplicate and a lot of work happened over there. Thanks!

#3192638: Header block overlapping popup

for:

@Abhijith S
@Agnesh Tank
@chetanbharambe
@djsagar
@kostyashupenko

These are already on this issue:

@IndrajithKB
@lauriii
@mherchel
@Sakthivel M
@xjm