Something I've encountered over several versions of Drupal is this HORRIBLE color combination in the Block Layout example screen. I've mentioned this before, and someone said they thought this was a theme-specific issue, but I have seen this in basically every theme I've used, so I'm pretty sure this must relate back to Core. This White text on the Yellow background is completely non-readable. (see attached example).

'block-region' doesn't have color property. It was using inherited color property of border. But at certain places, it was overridden by 'footer'. That is color: white; and the text is not visible.

Proposed solution

Add color: #000; property to 'block-region'. So it doesn't get overridden and stay visible.

Before/After patch screenshot

Comments

BEGRAFX created an issue. See original summary.

begrafx’s picture

Looking at this same screen using various themes, it is strange, because it is not happening on EVERY theme... for example, Oliverio does just fine. However there are some that end up as a mix, some of the titles being black while others are still white. I've screenshot a few examples. I'm also noticing the absence of the "exit" button/tab to get out of this screen.

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new762 bytes

That was happening because the 'block-region' doesn't have color property. It was using inherited color property of border. But at certain places, it was overridden by 'footer'. Now I have added color to block-region and attached the patch for same. please review

smustgrave’s picture

Priority: Normal » Minor
Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs issue summary update, +Needs screenshots, +Novice

Issue summary should be updated with before/after screenshots as well as proposed solution.

gauravvvv’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update, -Needs screenshots
StatusFileSize
new99.5 KB

Updated issue summary and added before/after screenshots.

smustgrave’s picture

Component: theme system » block.module
Status: Needs review » Reviewed & tested by the community

Change looks good thanks for the screenshots!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: 3356372-3.patch, failed testing. View results

smustgrave’s picture

Status: Needs work » Reviewed & tested by the community

Unrelated failure.

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.

  • longwave committed 0b988786 on 10.1.x
    Issue #3356372 by Gauravvvv, BEGRAFX, smustgrave: Bad Color combination...
longwave’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +ddd2023

I have run into this before on client sites and it's an obvious bug but was never frustrated enough to raise the issue or fix it.

Confirmed that this only affects the drupal.block.admin library which is only used in admin specific circumstances. To me this is OK to change in stable9 given it's an admin-facing-only bug and also to backport to 10.1.x given the impact is minimal.

Committed and pushed ee81893874 to 11.x and 0b988786b5 to 10.1.x. Thanks!

  • longwave committed ee818938 on 11.x
    Issue #3356372 by Gauravvvv, BEGRAFX, smustgrave: Bad Color combination...

Status: Fixed » Closed (fixed)

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