Make WordPress Core

Opened 3 years ago

Closed 5 months ago

Last modified 5 months ago

#55892 closed defect (bug) (fixed)

Twenty Twelve: submenu hidden under slideshow block

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

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
3 years ago

  • Component changed from Themes to Bundled Theme
  • Summary changed from Twenty Twelve submenu hidden under slideshow block to Twenty Twelve: submenu hidden under slideshow block

#2 @sabernhardt
3 years ago

  • Focuses css added
  • Version changed from 6.0 to 3.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
3 years ago

  • Keywords needs-patch added

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


6 months ago

#5 @sabernhardt
6 months ago

  • Milestone changed from Awaiting Review to Future Release

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


6 months ago
#6

  • Keywords has-patch added; needs-patch removed

#7 @karmatosed
5 months ago

  • Keywords needs-refresh added

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

#8 @poena
5 months 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
5 months 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
5 months ago

  • Milestone changed from Future Release to 6.7
  • Owner set to karmatosed
  • Status changed from new to assigned

#11 @poena
5 months 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
5 months ago

  • Owner changed from karmatosed to poena

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

#13 @poena
5 months 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:


5 months 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:


5 months 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:


5 months ago
#16

@karmatosed Sure will do that.

@karmatosed commented on PR #6886:


5 months ago
#17

Thank you @narenin.

@narenin commented on PR #6886:


5 months 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.


5 months ago

#20 @karmatosed
5 months ago

  • Owner changed from poena to karmatosed

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

#21 @karmatosed
5 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

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
5 months ago

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