- Issue created by @vinmayiswamy
- Merge request !78463444344-claro-dropdown-menu - apply z-index to fix the issue โ (Open) created by vinmayiswamy
- ๐ฎ๐ณIndia vinmayiswamy
Applied
z-index:1000
in the below patch.Please test in 10.2.x
Thanks!
- Issue was unassigned.
- ๐ฎ๐ณIndia vinmayiswamy
Observed that the autocomplete values are overlapping on scroll.
Created new patch to decrease z-index to 500.Attached screenshots for reference
Thanks!
- Merge request !78513444344-claro-dropdown-menu-1 - reduced z-index โ (Open) created by vinmayiswamy
- ๐ฎ๐ณIndia vinmayiswamy
VinmayiSwamy โ changed the visibility of the branch 3444344-claro-dropdown-menu to hidden.
- Status changed to Needs review
7 months ago 3:14am 1 May 2024 - Status changed to Needs work
7 months ago 3:40pm 1 May 2024 - First commit to issue fork.
- Status changed to Needs review
7 months ago 12:46pm 3 May 2024 - ๐ฎ๐ณIndia gauravvvv Delhi, India
I have updated the MR for 11.x, also targeted file was wrong on #8. I have fixed it.
- Status changed to Needs work
6 months ago 1:51pm 7 May 2024 - ๐บ๐ธUnited States smustgrave
Before/after screenshots should be added to the issue summary so leaving that tag.
- Status changed to Needs review
6 months ago 2:36pm 7 May 2024 - ๐ฎ๐ณIndia gauravvvv Delhi, India
Added before/after patch screenshots in issue summary.
- ๐บ๐ธUnited States mradcliffe USA
It looks like this issue is almost ready to be reviewed and tested by the community. Let's review the issue to ensure that issue summary clearly states the merge request to be committed to 11.x. I added the Novice and Portland2024 tags.
- ๐บ๐ธUnited States xjm
Please also hide the non-canonical MR and check to ensure that the canonical one is mergeable with pipelines passing. Thanks!
- last update
6 months ago Custom Commands Failed - ๐บ๐ธUnited States kd_ace Oklahoma
I am working on reviewing and testing this issue in the mentoring session at DrupalCon Portland. I will update the issue summary as well.
- ๐บ๐ธUnited States kd_ace Oklahoma
kd_ace โ changed the visibility of the branch 3444344-claro-Autocomplete-dropdown to hidden.
- ๐บ๐ธUnited States kd_ace Oklahoma
kd_ace โ changed the visibility of the branch 3444344-claro-Autocomplete-dropdown to active.
- ๐บ๐ธUnited States kd_ace Oklahoma
kd_ace โ changed the visibility of the branch 3444344-claro-dropdown-menu-1 to hidden.
- ๐บ๐ธUnited States kd_ace Oklahoma
Non-canonical MR hidden and issue summary updated and corrected. Issue ready to move to rtbc status.
- ๐บ๐ธUnited States mradcliffe USA
@capysara โ was mentoring @kd_ace on this issue at DrupalCon Portland 2024.
- ๐บ๐ธUnited States jvest
Reviewed #27 and tested with @kd_ace, issue looks good for rtbc status.
- Status changed to RTBC
6 months ago 9:06pm 8 May 2024 - Status changed to Needs work
6 months ago 9:22pm 8 May 2024 - ๐บ๐ธUnited States mradcliffe USA
Okay, I went over this again.
1, @jvest, could you rewrite your comment to clarify the steps you took to verify @kd_ace's work?
2, @ultimike pointed out that the merge request is about 29 commits behind. It still passes, but we should probably update the issue fork.
- ๐บ๐ธUnited States mradcliffe USA
Also, when switching from merge requests we can hide the patches to make the issue summary a little easier to parse for final review. I've done that.
- ๐บ๐ธUnited States jvest
Adding clarification on testing/review:
Used a shared DrupalPod instance
Enabled Authored By
Added several users added so that the list will be long enough when expandedThe overlay issue appearing behind the table heading is fixed.
Also manually changed the z-index back to original to show the original problem of the drop down appearing behind the table heading. - First commit to issue fork.
- Status changed to RTBC
6 months ago 5:20pm 13 May 2024 - ๐บ๐ธUnited States kd_ace Oklahoma
Updated MR again and tests completed successfully. Moving to RTBC!
- Status changed to Needs work
6 months ago 8:29pm 13 May 2024 - ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Left a comment in the MR as to why we need to find something different from the current solution.
The issue is due to this style that is added to sticky table headers:
.position-sticky thead { position: sticky; z-index: 500; top: var(--drupal-displace-offset-top, 0); }
This high Z-index is only necessary when the header is actually "stuck", but the Z-index is applied in either state. Unfortunately there is no way to target "stuck" elements with CSS only, so this leaves us with two approaches:
- Use Javascript to determine the coordinates of the table header and conditionally provide a z-index boosting class only when stuck at the top (and accounting for offsets such as toolbar)
- Update the Z-index of the dropdown, but target something specific to autocomplete vs. the current approach of targeting
ui-front
If an autocomplete dropdown is open, it's reasonably safe to assume it should be above other elements. An autocomplete-specific z-index boost (vsui-front
) is easier to test and less at risk of causing unwanted side effects
- ๐บ๐ธUnited States kd_ace Oklahoma
Thanks for the comment bnjmnm. I can definitely see where you are coming from and would be happy to help find a solution. I plan on looking into option 2 a bit more and seeing if I can propose a better css change than the current MR.
- ๐ฎ๐ณIndia Mithun S Bangalore
Mithun S โ made their first commit to this issueโs fork.
- Merge request !81083444344: Update the z-index value of the table header in claro for content page. โ (Closed) created by Mithun S
- ๐ฎ๐ณIndia Mithun S Bangalore
Mithun S โ changed the visibility of the branch 3444344-claro-Autocomplete-dropdown to hidden.
- Status changed to Needs review
6 months ago 9:12am 17 May 2024 - ๐ฎ๐ณIndia Mithun S Bangalore
Thought of a different approach without changing the global css. Decreased the z-index value of the table header based on the content page so that the autocomplete dropdown doesn't hide behind it. Also checked the table header remains sticky on the content pages.
Please review. - Status changed to Needs work
6 months ago 1:49pm 17 May 2024 - ๐บ๐ธUnited States smustgrave
MR has a bunch of test failures.
Also if a new approach is going to be used then issue summary will have to be updated and fresh set of screenshots added. Moving to NW for that.
- ๐ฎ๐ณIndia Mithun S Bangalore
Pushed a rebase for the PR and now the test failures are passed.
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
The z-indexes in Drupal are documented โ and considered stable. Custom Themes and modules are built knowing what these core z-indexes are, so reducing the z-index of a sticky header by 400 could be disruptive, where suddenly many elements can bleed through sticky header that were previously covered by it.
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Changing the issue title to describe the problem and not a potential solution.
- First commit to issue fork.
Added z-index according to
Update the Z-index of the dropdown, but target something specific to autocomplete vs. the current approach of targeting ui-frontIf an autocomplete dropdown is open, it's reasonably safe to assume it should be above other elements. An autocomplete-specific z-index boost (vs ui-front) is easier to test and less at risk of causing unwanted side effects
.
- Status changed to Needs review
6 months ago 4:49pm 29 May 2024 - Status changed to RTBC
6 months ago 1:52pm 31 May 2024 - ๐บ๐ธUnited States smustgrave
Believe the changes addresses the concern by @bnjmnm and still addresses the issue.
LGTM
- ๐ณ๐ฟNew Zealand quietone
Thank you to everyone who worked on this issue and got it to RTBC!
I have read the issue summary, comments and the MR. Thank you to @bnjmnm for creating a meaningful title. The title is used in the commit message so this is helpful to anyone going through the git logs. I did not find any unanswered questions. I don't do front end so I can not comment on the validity of the change.
Leaving at RTBC.
- Status changed to Needs work
5 months ago 8:06pm 17 June 2024 - ๐ซ๐ทFrance nod_ Lille
Let's use 501 as the zindex instead of 600. 600 is not used anywhere at the moment
- Status changed to Needs review
5 months ago 2:58am 18 June 2024 - ๐ฎ๐ณIndia sdhruvi5142
Hi
Verified MR !8108 on Drupal Version 11.0.x dev and the patch is getting failed.Testing steps that are followed:
1. Install Claro theme with Drupal 11.0.x
2. Go to /admin/content page.
3. Searched username in the 'Authored by' filter.
4. Observed the auto-complete behavior.Testing result:
Was able to replicated the issue but when I was applying the patch it was failing. Adding SS below for reference.Status : Fail
Thanks
- Status changed to Needs work
5 months ago 6:48am 18 June 2024 - ๐ซ๐ทFrance nod_ Lille
thanks @Gauravvvv There a is a duplicated rule we don't need, after that it's good to go.
- Status changed to Needs review
5 months ago 7:39am 18 June 2024 - ๐ณ๐ฑNetherlands idebr
Updated the issue summary to match the current resolution.
- Status changed to RTBC
5 months ago 4:05pm 18 June 2024 - Status changed to Fixed
5 months ago 8:33pm 18 June 2024 - ๐ซ๐ทFrance nod_ Lille
Committed and pushed e2d8242830 to 11.x and cabbb9391f to 11.0.x and dac6366fd6 to 10.4.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
- ๐บ๐ธUnited States emb03
Is there a patch for this for Drupal versions below 10.4?
- ๐ช๐ธSpain juanolalla
Here is the patch for 10.3.x, exactly the same as the fix committed in 10.4.x.