According to bartik.breakpoints.yml the breakpoint where mobile goes into narrow is 560px:

bartik.mobile:
  label: mobile
  mediaQuery: ''
  weight: 0
  multipliers:
    - 1x
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

Yet, the CSS media queries for the "hamburger menu" state 460px:

diff --git a/docroot/core/themes/bartik/css/components/header.css b/docroot/core/themes/bartik/css/components/header.css
index 40ea0f0..9ec9ce2 100644
--- a/docroot/core/themes/bartik/css/components/header.css
+++ b/docroot/core/themes/bartik/css/components/header.css
@@ -11,7 +11,7 @@
 .region-header .site-branding {
   margin-top: 0.429em;
 }
-@media all and (min-width: 461px) {
+@media all and (min-width: 561px) {
   .region-header .block {
     float: right; /* LTR */
     margin-top: 0.357em;
diff --git a/docroot/core/themes/bartik/css/components/primary-menu.css b/docroot/core/themes/bartik/css/components/primary-menu.css
index 1132ae2..7aa15e3 100644
--- a/docroot/core/themes/bartik/css/components/primary-menu.css
+++ b/docroot/core/themes/bartik/css/components/primary-menu.css
@@ -111,7 +111,7 @@ body:not(:target) .region-primary-menu .menu-toggle-target-show:target ~ .menu .
 /**
  * Media queries for primary menu.
  */
-@media all and (min-width: 461px) and (max-width: 900px) {
+@media all and (min-width: 561px) and (max-width: 900px) {
   .region-primary-menu .menu {
     margin: 0 5px;
     padding: 0;
@@ -203,9 +203,9 @@ body:not(:target) .region-primary-menu .menu-toggle-target-show:target ~ .menu .
 
 /**
  * Ensures that the open mobile menu hides when the screen dimensions become
- * 461px or wider.
+ * 561px or wider.
  */
-@media all and (min-width: 461px) {
+@media all and (min-width: 561px) {
   body:not(:target) .region-primary-menu .menu-toggle-target-show:target ~ .menu-toggle--hide {
     display: none;
   }
diff --git a/docroot/core/themes/bartik/css/components/site-branding.css b/docroot/core/themes/bartik/css/components/site-branding.css
index fda5d9e..cc947a8 100644
--- a/docroot/core/themes/bartik/css/components/site-branding.css
+++ b/docroot/core/themes/bartik/css/components/site-branding.css
@@ -16,7 +16,7 @@
   display: inline-block;
   vertical-align: top;
 }
-@media all and (min-width: 461px) {
+@media all and (min-width: 561px) {
   .site-branding__text {
     margin-bottom: 1.857em;
   }

Issue fork bartik-2868632

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpp created an issue. See original summary.

mpp’s picture

Status: Active » Needs review
bander2’s picture

Status: Needs review » Needs work

Thanks for your contribution mpp!

This patch won't apply. It looks like the patch was created from outside the drupal installation directory.

The patch's name should also follow the patch naming convention.

mpp’s picture

Version: 8.3.x-dev » 8.4.x-dev
Status: Needs work » Needs review
FileSize
1.94 KB

New patch against 8.4.x

bander2’s picture

Status: Needs review » Reviewed & tested by the community

Works great!

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs review

Thanks, looked at this.

First of all do these need to be in sync in the first place? I would love to see some git archeology on how we ended up at this place, which one was first, if this difference was discussed in the issues already when introducing the later change, etc?

Also if they do need to be in sync I think it would be "more backwards compatible" to fix this in the breakpoints YML file and not the CSS, no? The number of times this appears in the CSS makes it pretty apparent that was intentional.

That said I asked for a second opinion from @lauriii as well.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

ranjith_kumar_k_u’s picture

FileSize
2.03 KB
250.89 KB
260.31 KB
236.6 KB

Please review

djsagar’s picture

FileSize
68.85 KB
69.67 KB

Patch #14 is working fine in drupal9.2.

Thanks!

djsagar’s picture

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

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs subsystem maintainer review

Tagging for subsystem maintainer review based on #6.

longwave’s picture

I did the archaeology for this as requested in #6.

min-width: 461px in CSS was first introduced in #1192044-73: Convert Bartik's layout to mobile-first and responsive. This even has a comment:

@media all and (min-width: 461px) and (max-width: 900px) { /* @TODO Find proper breakpoint */

Between #88 and #98 in that issue, the @todo was lost but there was no discussion about it. Another @todo about breakpoints remains but #113 notes that "i don't agree that agreeing on a breakpoint width is a prerequisite for committing this" and the patch is committed in #114.

The 461px value is then spread to multiple places in a number of later refactoring issues.

Separately, min-width: 560px in the breakpoints config was added in #1775774: Allow themes to identify their breakpoints to Drupal. In #36 Gabor stated "as per the intent of this issue, these breakpoints are just a static copy-paste from the breakpoints already defind in CSS to inform the rest of the system" but this must have not been checked that closely at the time!

vikashsoni’s picture

FileSize
293.62 KB

the issue is not still there and no need for apply patch. It's working fine and there is no breakpoints

Madhu kumar’s picture

FileSize
252.94 KB
264.51 KB

Patch #14 applied cleanly and it is working well. Added screenshot for reference

Before patch:

before-patch

After patch:

after

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Thanks to everyone who's taken screenshots.

Back to RTBC following #18 and the screenshots.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 14: 2868632-14.patch, failed testing. View results

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

kiran.kadam911’s picture

Status: Needs work » Needs review
FileSize
2.04 KB

Thanks to everyone! Just re-rolling patch to 9.3.x

Kindly review.

Thanks!

Sakthivel M’s picture

FileSize
237.51 KB
236.31 KB

@ranjith_kumar_k_u thanks,

Verified and tested patch#24. Patch applied successfully and looks good to me.

Moving to RTBC

Sakthivel M’s picture

Status: Needs review » Reviewed & tested by the community
Rinku Jacob 13’s picture

FileSize
154.63 KB
155.47 KB

verified and tested patch #24.patch applied successfully for 9.3.x dev

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2868632-24.patch, failed testing. View results

Sakthivel M’s picture

Status: Needs work » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2868632-24.patch, failed testing. View results

longwave’s picture

Status: Needs work » Reviewed & tested by the community

Random fail, back to RTBC

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2868632-24.patch, failed testing. View results

longwave’s picture

Status: Needs work » Reviewed & tested by the community

Random fail again.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2868632-24.patch, failed testing. View results

vsujeetkumar’s picture

Status: Needs work » Reviewed & tested by the community

Re-test on #24, Fixed the Random fail test, Now it is on Green, Move again to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2868632-24.patch, failed testing. View results

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

vikashsoni’s picture

Applied patch #24 in drupal-9.3.x-dev and applied successfully
After patch the issue has been fixed on mobile responsive on 560 port
Thanks for the patch
For ref sharing screenshot ...

longwave’s picture

Status: Needs work » Reviewed & tested by the community

Random fail yet again, back to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2868632-24.patch, failed testing. View results

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

pameeela’s picture

Project: Drupal core » Bartik
Version: 10.1.x-dev » 1.0.2
Component: Bartik theme » Look and Feel
Issue tags: -Needs subsystem maintainer review +Bug Smash Initiative

Moving to contrib since Bartik was removed from core in D10.

djsagar’s picture

Status: Needs work » Needs review

Created MR request based on #24, kindly review.

Thanks!