Make WordPress Core

Opened 4 years ago

Closed 2 years ago

Last modified 2 years ago

#55892 closed defect (bug) (fixed)

Twenty Twelve: submenu hidden under slideshow block

Reported by: robertghetau Owned by: karmatosed
Priority: normal Milestone: 6.7
Component: Bundled Theme Version: 3.5
Severity: normal Keywords: has-patch needs-refresh changes-requested commit
Cc: Focuses: css

Description

This is a replica of this issue: https://github.com/Automattic/wp-calypso/issues/63939

Steps to replicate:

  1. Activate the theme Twenty Twelve
  2. Add 3 elements to the same submenu on the site
  3. Add a slideshow at the start of a page

Change History (22)

#1 @SergeyBiryukov
4 years ago

  • Component ThemesBundled Theme
  • Summary Twenty Twelve submenu hidden under slideshow blockTwenty Twelve: submenu hidden under slideshow block

#2 @sabernhardt
4 years ago

  • Focuses css added
  • Version 6.03.5

I wanted to say that this should be solved in Jetpack, not the theme. However, the submenus only have a z-index of 1, so any content element with a positive z-index could cover the submenu.

@media screen and (min-width: 600px) {
	.main-navigation li ul {
		z-index: 1;
	}
}

#3 @sabernhardt
4 years ago

  • Keywords needs-patch added

This ticket was mentioned in Slack in #core-themes by karmatosed. View the logs.


2 years ago

#5 @sabernhardt
2 years ago

  • Milestone Awaiting ReviewFuture Release

This ticket was mentioned in PR #6886 on WordPress/wordpress-develop by @narenin.


2 years ago
#6

  • Keywords has-patch added; needs-patch removed

#7 @karmatosed
2 years ago

  • Keywords needs-refresh added

This looks like it needs a refresh based on tests. Let's see about getting that.

#8 @poena
2 years ago

The test errors shown on GitHub does not seem to be related to the PR, can the tests be restarted?
(I do not have access to doing this).

Or are you referring to test results that are not listed here?

#9 @karmatosed
2 years ago

@poena I just re-ran tests and looks like it was just a matter of them being stuck which is exciting to find out. If you are happy I will absolutely see about moving this to commit now.

#10 @karmatosed
2 years ago

  • Milestone Future Release6.7
  • Owner set to karmatosed
  • Status newassigned

#11 @poena
2 years ago

I have not tested the PR with Jetpack or other "overlays", I am not sure that changing the z-index from 1 to 2 is enough.
I am still thinking about the easiest way to test it.

#12 @karmatosed
2 years ago

  • Owner changed from karmatosed to poena

Ok in that case, happy to assign to you whilst you do that @poena.

#13 @poena
2 years ago

  • Keywords changes-requested added

Test results

  • JetPack slideshow has z-index 1, so using 2 in the theme would solve this problem.
  • Jetpack Image compare has z-index 5, so using 2 in the theme would not solve this.
  • Jetpack Story has z-index 1.
  • WooCommerce sale and zoom icons which sits over the product image, has z-index 9.
  • Popup Maker -no issues found with or without the PR.

What does other menus use?

  • The navigation block uses z-index: 2.
  • Twenty Sixteen z-index: 99999
  • Twenty Nineteen z-index: 99999
  • GeneratePress z-index: 99999
  • Kadence z-index: 1000

My recommendation would be to use 9999.


The navigation block is also broken in this theme, I will first check if there is an issue open for this.

@karmatosed commented on PR #6886:


2 years ago
#14

@narenin there is a recommendation on the track ticket to move this PR to use 99999 index, could you iterate?

@karmatosed commented on PR #6886:


2 years ago
#15

@narenin there is a recommendation on the track ticket to move this PR to use 99999 index, could you iterate?

@narenin commented on PR #6886:


2 years ago
#16

@karmatosed Sure will do that.

@karmatosed commented on PR #6886:


2 years ago
#17

Thank you @narenin.

@narenin commented on PR #6886:


2 years ago
#18

@karmatosed I have done the same, could you please take a look.

This ticket was mentioned in Slack in #core-themes by karmatosed. View the logs.


2 years ago

#20 @karmatosed
2 years ago

  • Owner changed from poena to karmatosed

Thank you @narenin I am now going to test this.

#21 @karmatosed
2 years ago

  • Resolutionfixed
  • Status assignedclosed

In 58776:

Twenty Twelve: Fixes submenu hiding under slideshow block.

Whilst initially this could be thought to be solved in Jetpack due to submenus only having a z-index of 1 a fix is desirable. This brings in the suggested value.

Props robertghetau, SergeyBiryukov, sabernhardt, poena, narenin.
Fixes #55892.

#22 @karmatosed
2 years ago

  • Keywords commit added
Note: See TracTickets for help on using tickets.