Suggested commit message:

git commit -m 'Issue #2574797 by dschenk, zuhair_ak, ckrina, emma.maria, lucastockmann: Bartik: Site title lays over the menu block'

Problem/Motivation

On mobile devices the site title lays a bit over the menu block when the Site title is to large.

User interface changes

Applied patch from Comment #21


Firefox Before and After



Chrome Before and After

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lucastockmann created an issue. See original summary.

lucastockmann’s picture

Component: theme system » CSS

Changed "Component".

lucastockmann’s picture

Issue summary: View changes
dschenk’s picture

Are you going to work on this @lucastockmann? Else I'm going to try to fix this.

dschenk’s picture

Went ahead with this. Added 0.375em padding to the bottom of the region header. The same amount that is used as on the top. Did not see any regression of this change when smoke testing various pages.

dschenk’s picture

Issue tags: +Bartik
dschenk’s picture

Status: Active » Needs review
dschenk’s picture

Title: Site title lays over the menu block » Bartik: Site title lays over the menu block
ckrina’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
86.54 KB
127.15 KB

It's working for me. I've updated Firefox and Chrome screenshots to show it.

ckrina’s picture

Status: Reviewed & tested by the community » Needs review
Sam152’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

alexpott’s picture

Assigned: Unassigned » emma.maria
Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs subsystem maintainer review

Assigning to @emma.maria for final sign-off as this is a deign change in Bartik.

LewisNyman’s picture

Component: CSS » Bartik theme
emma.maria’s picture

Assigned: emma.maria » Unassigned
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: -Needs subsystem maintainer review +CSS, +Novice
FileSize
28.12 KB
27.23 KB
27.82 KB
27.21 KB

Apologies for stalling this issue.

So the change is wonderful for mobile, anything added to the header now has a space below it and the bottom of the section. However the patch in #5 does adds a height change to the header for tablet and desktop widths.

Screenshots.

Tablet

Before


 

After

Desktop

Before

After

Can a media query + style be added for tablet and up layouts to negate the margin bottom on the region-header please.

zuhair_ak’s picture

Added padding bottom to region header for only devices below 461px using media query.

zuhair_ak’s picture

Version: 8.0.x-dev » 8.2.x-dev
Status: Needs work » Needs review
ckrina’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +DrupalBCDays
FileSize
28.35 KB
37.42 KB
25.69 KB

Now the change only applies for small screens as @emma.maria said. I've tested it and the fix doesn't apply on bigger screens than 461px. Attaching screenshots:

Big

Desktop before-after

Tablet

Tablet before-after

Mobile

Tablet before-after

emma.maria’s picture

Issue summary: View changes

Thanks @ckrina for the review! RTBC++

Suggested commit message:

git commit -m 'Issue #2574797 by dschenk, zuhair_ak, ckrina, emma.maria, lucastockmann: Bartik: Site title lays over the menu block'
star-szr’s picture

Status: Reviewed & tested by the community » Needs work

I could be wrong but I think the max-width should be 460 here, not 461. Otherwise at exactly 461px it's inconsistent (a bit too much spacing I think).

For example from bartik.breakpoints.yml:

bartik.narrow:
  label: narrow
  mediaQuery: 'all and (min-width: 560px) and (max-width: 850px)'
  weight: 1
  multipliers:
    - 1x
bartik.wide:
  label: wide
  mediaQuery: 'all and (min-width: 851px)'
  weight: 2
  multipliers:
    - 1x

From css/components/primary-menu.css:

  114: @media all and (min-width: 461px) and (max-width: 900px) {
  115    .region-primary-menu .menu {
  116      margin: 0 5px;
  ...
  161  }
  162  
  163: @media all and (min-width: 901px) {
  164    .region-primary-menu .block-menu .menu {
  165      font-size: 0.929em;
kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko

@Cottser, checking

kostyashupenko’s picture

@Cottser, you were right, there was unnecessary padding-bottom on 461px. It should be added on 460. Screens below after my patch

461px:
461.png
460px:
460.png

kostyashupenko’s picture

Status: Needs work » Needs review
emma.maria’s picture

Assigned: kostyashupenko » Unassigned

@kostyashupenko Thanks for investigating and creating a patch. I've unassigned you from the issue also to free it up for review :-)

edwdeapri’s picture

I am at mentor sprints here at DrupalCon NOLA and testing this issue.

BSpeel’s picture

Confirmed issue before patch and the fix afterwards on a few different pages with lowercase g, q and y in Safari, Chrome, and FireFox. +1 RTBC

tomgrandy’s picture

Issue tags: +New Orleans 2016

We are going to be testing this after lunch.

tomgrandy’s picture

Confirm patch works in multiple browsers emulating mobile with lowercase g and y.

star-szr’s picture

Assigned: Unassigned » star-szr
templeman’s picture

We are working on posting screenshots showing patch before & after for several browsers.

tomgrandy’s picture

FileSize
241.88 KB

Attached Images show patch applied to D8 with patch in Firefox showing before and after application of the patch.

tomgrandy’s picture

FileSize
263.25 KB

Attached Images show patch applied to D8 with patch in Chrome showing before and after application of the patch.

tomgrandy’s picture

tomgrandy’s picture

Issue summary: View changes
tomgrandy’s picture

tomgrandy’s picture

  • Cottser committed d276bb4 on 8.2.x
    Issue #2574797 by kostyashupenko, dschenk, zuhair_ak, ckrina, emma.maria...
star-szr’s picture

Assigned: star-szr » Unassigned
Priority: Minor » Normal
Status: Reviewed & tested by the community » Fixed

Bumped to normal because it can be a readability/accessibility issue.

Committed d276bb4 and pushed to 8.2.x at DrupalCon New Orleans. Thanks!

tfhakala’s picture

FileSize
290.24 KB

We tested this on a Galaxy S7 using Chrome, an iPhone 6S Plus using Safari, and two iPhone 6Ss using Safari and Chrome. The patch worked successfully on all browsers. Attached image is before and after patch on the iPhone 6S Plus and the after patch on the Galaxy S7.

Only local images are allowed.

Keithdoyle9, Kay_v, someone else at our table (Sorry I forgot your name!), and I were working on this before the live commit at DrupalCon NOLA 2016. I had issues getting the comment to submit before the live commit, but thought the comment was worth adding for the additional testing on mobile devices.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.