Within Olivero, if the image can overlap a sidebar if the toolbar is in vertical mode and is open.

Issue fork drupal-3220566

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:

Comments

mherchel created an issue. See original summary.

djsagar’s picture

Assigned: Unassigned » djsagar
djsagar’s picture

Status: Active » Needs review
StatusFileSize
new1.16 KB

Hi mherchel,

Small changes in code regarding you issue please review.

Thanks!

djsagar’s picture

Assigned: djsagar » Unassigned
bnjmnm’s picture

StatusFileSize
new106.97 KB

re #5 @vikashsoni adding a screenshot that shows a patch applies provides zero benefit. The Drupal test runner automatically confirms a patch is able to apply, there's no reason to provide additional evidence of this. This can be seen in #3

This has been pointed out to you before: #3217924: Olivero: Convert all colors (blues and grays) to HSL and normalize hues and saturations. . I encourage you to use Drupal Slack to ask questions about how to contribute to issues in a way that benefits them. It can be confusing at first but many of us are happy to assist.

abhijith s’s picture

StatusFileSize
new1.02 MB
new1.08 MB

Applied patch #3 and it fixes the issue.Adding screenshots.

Before:
before

After:
after

RTBC +1

bnjmnm’s picture

Status: Needs review » Needs work
+++ b/core/themes/olivero/css/components/header-navigation.css
@@ -107,6 +107,10 @@ html.js .header-nav {
+body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
+  margin-left: 0;
+}

This approach won't work as it results in the vertical menu covering interactable parts of the page. For example, the menu toggle can no longer be accessed. There are two significant reasons this is a problem 1) This deviates from the expected functionality - in all other themes the full page is still interactable 2) It it an accessibility violation as there's areas where an element could be focused but the focus state not visible.

This should probably be addressed in a way that has the image resizing to the width available to it.

kiran.kadam911’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new429.54 KB
new620.96 KB

@mherchel @bnjmnm Yes we should use max-width here and I just checked image is already having max-width 100% even overlapping issue is also not present. Attaching screenshot,

Let me know if I am on the wrong path or checking something else.

Thanks!

chetanbharambe’s picture

Status: Needs review » Needs work
StatusFileSize
new3.14 MB
new3.12 MB

Verified and tested patch #3.
Patch applied successfully.

Testing Steps:
# Go to Appearance -> Set Olivero theme
# Set the toolbar in vertical mode
# Place the custom block in the sidebar region
# Save it
# Create an article page with uploading an image
# Save it and see the results

Expected Results:
# wide image should not overlap on the sidebar when toolbar open and in vertical mode

Actual Results:
# wide image can overlap sidebar when toolbar open and in vertical mode

Test Results: Wide image is not overlapping on the sidebar when the toolbar is in an open and vertical mode but there should be some margin on the left side also. The image should not touch the toolbar.

Please refer attached screenshots.
Can be a move to Needs work.

komal.savla made their first commit to this issue’s fork.

komal.savla’s picture

Status: Needs work » Needs review
StatusFileSize
new3 KB

Hi,

Creating new patch with changes in code to fix overlapping with sidebar when vertical toolbar is opened.

Please review the patch

Thanks

ranjith_kumar_k_u’s picture

StatusFileSize
new2.99 KB

Fixed custom command failure

xjm’s picture

Priority: Minor » Normal

Normal priority bug under the normal issue priority definition:

Bugs for site visitors that do not interfere with site use, for example, visual layout issues.

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.

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.

rinku jacob 13’s picture

StatusFileSize
new2.98 KB
new1.53 MB
new1.49 MB

Re-rolled patch#13 for drupal version 9.5.x-dev.Also reviewed the issue with the re-rolled patch.Adding screen shots for the reference.Thanks @Ranjith Kumar

pradipmodh13’s picture

StatusFileSize
new2.09 MB
new1.37 MB

Applied patch #13.
It's working successfully.
this bug occurs only on if you upload image on Article content type.
It is working fine in basic page content type.

gisle’s picture

As site moderator, I unpublished one junk comment (uploaded screenshot of patch applying successfully) by vikashsoni that was reported to the site moderators as spam.

For reference, please see item #11 on the list of things not do do.

akshayadhav’s picture

Status: Needs review » Needs work

I don't think applying width: auto to image container is the right fix for this issue, as it disrupts the main idea and design behind extending the image from both left and right sides.
I would suggest to extend the width of the main container and reduce the width for textual content only (keeping the width of the image same as outer container). Which will give the desired (design) output without creating such issues.
The issue is causing because the width is increased beyond its available width and -ve margin-left is applied to it.

@bnjmnm, @mherchel Your thoughts please.

amin.ankit’s picture

Assigned: Unassigned » amin.ankit
amin.ankit’s picture

Assigned: amin.ankit » Unassigned

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.

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

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

wim leers’s picture

nayana_mvr’s picture

Status: Needs work » Needs review
StatusFileSize
new903.04 KB

I have verified this issue on Drupal core version 11.x and it is not reproducible. Steps followed:-

  1. Placed 2 blocks in the sidebar region of block layout.
  2. Added an image field in Article content type.
  3. Created an Article page with a wide image.

In the frontend, the image size is adjusted to fit in the content region and is not overlapping with sidebar content. Please find the attached screenshot for reference.

test

I have checked the related issue linked here. I think it would be better to create a separate ticket for the issue mentioned there as the primary issue mentioned in this ticket seems to be fixed. Would recommend review from others as well. So moving this ticket to Need Review.

smustgrave’s picture

Status: Needs review » Postponed (maintainer needs more info)

Anyone still seeing this issue? If not we can just close this one out.

smustgrave’s picture

Bumping 1 more time.