Environment Indicator can break Responsive Preview when used with Navbar, because it overrides the text color everywhere in the Navbar including the links to preview on a device. The Responsive Preview button div has a white background, and Environment Indicator usually forces white text, making it unreadable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dane Powell’s picture

Status: Active » Needs review
FileSize
1.13 KB

There are a lot of ways to fix it, this is just one- making the navbar color replacing selector a little less zealous.

e0ipso’s picture

Status: Needs review » Needs work

Under those circumstances you can set the EI text color to a different color. Also, any specific color combination can be dealt with in custom code.

ilkkave’s picture

FileSize
290.81 KB

The patch would still show the "Configure devices" link of Responsive Preview with a white text, making it not visible:

Configure link not visible

ilkkave’s picture

If we want to target only navbar links, we could target those with class ".navbar-icon" http://cgit.drupalcode.org/navbar/tree/navbar.module?h=7.x-1.7#n548.

Attached a patch with that change.

ilkkave’s picture

Got a nasty typo to the first patch, here's a fixed one.

e0ipso’s picture

Status: Needs work » Closed (won't fix)

Version for D7 is unmaintained. I am sorry for the inconvenience.