Currently the overlay will not render under a screen size of 640px. Using a hard-coded pixel value was necessary when the issue of the overlay rendering poorly on small screens was addressed: #1260800: Kill the overlay for widths below 640 pixels

Since #1260800 was committed, we've seen breakpoint management committed to core #1734642: Move breakpoint module into core as well as support for media query detection in the client #1815602: Introduce a polyfill for matchMedia.

We can now vary the presence, behavior and styling of the overlay based on configurable breakpoints rather than hard-coded viewport width values into JavaScript.

This issue enables #1827330: Fix overlay placement which is broken in the current D8 ToolBar patch.

Dependencies

#1847084: Measure/track displacing elements better + provide change events for them (fix overlay + toolbar)

Comments

jessebeach’s picture

Status: Active » Needs review
StatusFileSize
new11.41 KB

I added breakpoint support to overlay, replacing the hard-coded 640px breakpoint in the JavaScript.

I also added some responsive goodness so that the overlay looks good at smaller screen sizes (even though it won't load at those smaller sizes) for the case that a user reduces their screen width.

The last submitted patch, 1829326_overlay-breakpoints_1.patch, failed testing.

attiks’s picture

Status: Needs work » Needs review

#1: 1829326_overlay-breakpoints_1.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +mobile, +#d8mux

The last submitted patch, 1829326_overlay-breakpoints_1.patch, failed testing.

eigentor’s picture

Hm this needs some structural rethinking if and how the overlay can work on narrow screens, especially together with the vertical toolbar. It emphasizes even more the efforts to make Seven and all admin forms fit on even very narrow screensizes.

shyamala’s picture

Issue tags: +toolbar-followup

+toolbar-followup

shyamala’s picture

Issue summary: View changes

Updated issue summary.

shyamala’s picture

Status: Needs work » Postponed
johnalbin’s picture

Issue tags: -#d8mux +d8mux

Issue tags aren't Twitter hashtags. :-)

attiks’s picture

Status: Postponed » Needs review

#1: 1829326_overlay-breakpoints_1.patch queued for re-testing.

rteijeiro’s picture

Status: Needs review » Needs work

Hi.

I have tested the #1 patch but the overlay doesn't load on any screen size. Is there something I have to do before?

Regards.

jessebeach’s picture

Rerolled for freshness.

rteijeiro, would you mind testing again? The overlay loads fine for me with this patch.

This proposed change still needs some work below 450px width. Specifically what to do with the tabs.

jessebeach’s picture

StatusFileSize
new12.68 KB

aaaaaaaand the patch.

attiks’s picture

Status: Needs work » Needs review

Looking good, but

+++ b/core/modules/overlay/overlay-child-rtl.cssundefined
@@ -12,18 +12,20 @@ html {
+@media screen and (min-width: 50em) {

Is the 50em a 'default' in case breakpoint isn't active/defined?

+++ b/core/modules/overlay/overlay-child.cssundefined
@@ -68,17 +67,33 @@
+@media screen and (min-width: 50em) {

dito

nod_’s picture

Issue tags: -mobile, -d8mux, -toolbar-followup

Status: Needs review » Needs work

The last submitted patch, responsive-overlay-1829236-12.patch, failed testing.

Anonymous’s picture

Issue summary: View changes
jessebeach’s picture

Issue summary: View changes
jessebeach’s picture

Issue summary: View changes
nod_’s picture

Status: Needs work » Closed (won't fix)

Overlay is dead to D8 #2088121: Remove Overlay.