Closed (fixed)
Project:
Drupal core
Version:
10.4.x-dev
Component:
Claro theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Apr 2024 at 10:35 UTC
Updated:
4 Dec 2024 at 14:40 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #3
vinmayiswamy commentedApplied
z-index:1000in the below patch.Please review in Drupal 10.2.x
Thanks!
Comment #4
vinmayiswamy commentedComment #5
vinmayiswamy commentedComment #6
vinmayiswamy commentedObserved that the autocomplete values are overlapping on scroll.
Created new patch to decrease z-index to 500.
Attached screenshots for reference
Thanks!
Comment #7
vinmayiswamy commentedComment #10
vinmayiswamy commentedComment #11
vinmayiswamy commentedComment #12
smustgrave commentedMR has failures
This a problem on 11.x?
Comment #15
gauravvvv commentedI have updated the MR for 11.x, also targeted file was wrong on #8. I have fixed it.
Comment #16
smustgrave commentedBefore/after screenshots should be added to the issue summary so leaving that tag.
Comment #17
gauravvvv commentedAdded before/after patch screenshots in issue summary.
Comment #18
mradcliffeIt 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.
Comment #19
xjmPlease also hide the non-canonical MR and check to ensure that the canonical one is mergeable with pipelines passing. Thanks!
Comment #20
kyle.davis commentedI am working on reviewing and testing this issue in the mentoring session at DrupalCon Portland. I will update the issue summary as well.
Comment #21
kyle.davis commentedComment #22
kyle.davis commentedComment #26
kyle.davis commentedComment #27
kyle.davis commentedNon-canonical MR hidden and issue summary updated and corrected. Issue ready to move to rtbc status.
Comment #28
mradcliffe@capysara was mentoring @kd_ace on this issue at DrupalCon Portland 2024. And I have been answering some questions as well this afternoon.
Comment #29
jvest commentedReviewed #27 and tested with @kd_ace, issue looks good for rtbc status.
Comment #30
kyle.davis commentedComment #31
mradcliffeOkay, 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.
Comment #32
mradcliffeAlso, 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.
Comment #33
jvest commentedAdding 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 expanded
The 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.
Comment #35
kyle.davis commentedUpdated MR again and tests completed successfully. Moving to RTBC!
Comment #36
bnjmnmLeft 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:
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:
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 (vsui-front) is easier to test and less at risk of causing unwanted side effectsComment #37
kyle.davis commentedThanks 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.
Comment #41
mithun sThought 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.
Comment #42
smustgrave commentedMR 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.
Comment #43
mithun sPushed a rebase for the PR and now the test failures are passed.
Comment #44
bnjmnmThe 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.
Comment #45
bnjmnmChanging the issue title to describe the problem and not a potential solution.
Comment #47
utkarsh_33 commentedAdded z-index according to
.
Comment #48
utkarsh_33 commentedComment #49
smustgrave commentedBelieve the changes addresses the concern by @bnjmnm and still addresses the issue.
LGTM
Comment #50
quietone commentedThank 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.
Comment #51
nod_Let's use 501 as the zindex instead of 600. 600 is not used anywhere at the moment
Comment #52
gauravvvv commentedComment #53
sdhruvi5142 commentedHi
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
Comment #54
nod_thanks @Gauravvvv There a is a duplicated rule we don't need, after that it's good to go.
Comment #55
utkarsh_33 commentedAddressed feedbacks.
Comment #56
idebr commentedUpdated the issue summary to match the current resolution.
Comment #57
smustgrave commentedBelieve this to be addressed.
Comment #62
nod_Committed and pushed e2d8242830 to 11.x and cabbb9391f to 11.0.x and dac6366fd6 to 10.4.x. Thanks!
Comment #64
emb03 commentedIs there a patch for this for Drupal versions below 10.4? patch 7 has a z-index of 500 not 501 there is no patch 8
Comment #65
juanolalla commentedHere is the patch for 10.3.x, exactly the same as the fix committed in 10.4.x.
Comment #66
msantin0 commentedHi,
Thank you for providing the patch for 10.3.x.
Could you please confirm if there are plans to merge this patch into 10.3.x as well? Resolving this issue in the 10.3.x branch would be highly beneficial for projects currently relying on that version.
Looking forward to your response!
Best regards.