Bug Report:
=====================
Black on black is unreadable

Proposed Solution:
=====================
Remove the black background color which results in a white background and text becomes readable in weird situations where you have long links and long words on mobile devices

Summary:
=====================
This change is the result of working on two issues:
https://www.drupal.org/node/1085472
https://www.drupal.org/node/2679126

Before Change:
=====================
Black on Black

After Change:
=====================
Black on White

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ccjjmartin created an issue. See original summary.

ccjjmartin’s picture

ccjjmartin’s picture

Issue summary: View changes
ccjjmartin’s picture

Status: Active » Needs review
abbym’s picture

ccjjmartin - can you provide steps to replicate this bug? I'm having a hard time getting the original issue to appear, but may be looking in the wrong place. Thanks!

amklose’s picture

@ccjjmartin Are you suggesting that the option to make the background black should be removed?

Anilu@’s picture

I was able of reproduce this issue but only under 185 px screen width. So i'm wondering if this issue is still relevant.

Probably it will be a good idea do testing on different browser versions. I'm on Chrome Version 57.0.2987.133 (64-bit)

Follow the next steps in order to reproduce this issue:

  1. Make sure you enable comments on your site
  2. Go and edit an existing page or create a new one
  3. Add some comments. Preferably with a very long text.
  4. Check the editing page on a small screen resolution.
poojakural’s picture

@Anilucoto Tested this issue less than 185px and could replicate this issue. but the standard size of minimum screen resolution is 320px. Do we really consider this much width?

Anilu@’s picture

@poojakural It's the same question I ask myself.

I do not think it is necessary if this is the case, but I'm not sure that it is the only case, it is possible that in other browsers or other conditions it is possible to reproduce the error.

Neetika K’s picture

Applied the patch #2
Tested on 320 px screen.

Actual: Good to go to RTBC

Neetika K’s picture

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

Sorry for taking so long to respond. This is reproducible in many ways but the easiest is to add commenting to a content type. Then add a comment on a node. Put some really long words (or possibly links) in the comment. Then also reply to that comment and additionally put long words and/or long links in the reply comment.

I am sure there are other ways to reproduce this error. The general idea is that if the content extends beyond the page border and we get the background to be visible then we have black text against a black background.

star-szr’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
FileSize
8.22 KB

The issue I see with making this change is that "shorter" pages (when the entire content fits vertically on screen without scrolling) will have a white background below the footer. I think we need to look into other ways to fix this.

Attaching a rough screenshot to show what I mean.

jpassetti’s picture

I believe the simplest fix is to make the background color of .comment__content white, so if the comment does bleed over, the text is still readable.

This solution only works if the css declaration word-break: break-all is present. Issue #2679126 intends to remove this declaration.

It's worth noting that we should develop a better responsive CSS solution for the comments region for smaller viewports. The CSS declaration display: table is not ideal for smaller viewports, but is out of scope for this issue.

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.

cverde’s picture

Status: Needs review » Closed (duplicate)
Issue tags: +Vienna2017

I tested with @quicksketch this on 8.5.x and it has been solved by #1085472: Long strings within comments break Bartik's page layout.