The Bartik theme allows setting the "Footer background" (color); however, there appears to be no way to set the text color. In the themes/bartik/css/style.css file, #footer-wrapper has:

color: #c0c0c0;
color: rgba(255,255,255,0.65);

replacing by "color: black;" immediately causes the text to show up. So it is not being overridden anywhere (or, at least, not successfully).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

osha’s picture

Version: 7.0-beta3 » 7.0

I just spent 2 hours confused because of this issue. The footer text wasn't showing up and it took me ages to figure out that it was because the footer text color and footer background color were the same. In the GUI there is no way to change the footer text color or even to see how it is set. Another, possibly related issue: when the footer background color is changed it also seems to affect the content background color.

Jeff Burnz’s picture

Title: Bartik theme footer text white/grey on light background » Add color options for foreground text where background colors can be altered

Agreed, this is a silly bug and quite strait forward to fix, we need to add some color options for foreground text where the background colors can be changed.

Jeff Burnz’s picture

Version: 7.0 » 8.x-dev
Component: theme system » Bartik theme
Issue tags: +Needs design review, +Needs accessibility review, +Needs backport to D7

Bumping to D8, think we should backport this also. I've been building tonnes of colorable themes this year with D7 and seriously this not that much work - mainly because we have the default colors already, we just need to shift them from being hard coded to colors.css and add them to color.inc.

First step is to identify all the places this can happen.

davycw’s picture

+1

falkendk’s picture

Assigned: Unassigned » falkendk
Category: bug » task
Status: Active » Needs review
FileSize
73 KB
84.41 KB
5.31 KB

I added the following color options:

  • Sidebar text
  • Sidebar links
  • Footer text
  • Footer links

and changed the default text color in sidebar from #3b3b3b to #3b3b3a so color module don't change the the body text color if you change the sidebar text color.

falkendk’s picture

Patch for 7.x, same as above just for 7.x

Status: Needs review » Needs work

The last submitted patch, drupal7.x-Added_options_to_bartik_theme-973998-3.patch, failed testing.

mgifford’s picture

FileSize
167.31 KB

I added some truly vile colors when playing with this.

Thanks @falkendk for the D8 patch in #5.

The patch looks pretty simple and it works. I don't know what else would be required to mark it RTBC.

Well, more testing. Can someone test this in Windows? Hopefully we can get this in Core.

Jeff Burnz’s picture

The problem with the footer is that it substantially changes the design. I think I can live with the sidebar having a non-neutral grey, not sure if that will impact anyone unless they are doing something really radical with color shift and are very anal, but the footer uses rgba.

That said there is no way out of this, color module only supports hex, so we either do this and use hex or stick with status quo of unchangeable footer text and link colors. My vote goes for a change, however this will alter the design of every bartik site that has a non-standard footer background. A small price to pay I think for much greater flexibility.

Regarding the patch:

- I cant see that it removes the colors from style.css (both hex and rgba, the hex is there for non supporting browsers), it should
- footer links have a hover state, this is no longer supported, a regression?
- patch uses background property, should use background-color, most if not all others do in colors.css
- footer wrapper contains a legion of other things that use rgba - how is this working out - could this be handled by adding a "footer borders color" to the color schemes and applying the hex values to those other elements currently using rgba?

wooody’s picture

Hi,
Thats nice its work fine... But what if I want to add like .. headerlink sidebarfirstlink sidebarsecondlink .. or some more custom ... I dont understand ...
is these keys inside color module code.. or its ID or Class ..

 'sidebartext' => '#3b3b3a',
 'sidebarlink' => '#0070b3',
 'footertext' => '#c0c0c0',
 'footerlink' => '#fcfcfc',
RogerHarris’s picture

Issue summary: View changes

Is it advisable just to change the CSS file that specifies the footer text color? Not sure with this is yet. (Need to check w/Firebug). I'm assuming a theme update would override the CSS, but if it's just one change then it shouldn't be a problem. Should it?

mgifford’s picture

I wonder if we should have a patch just for the sidebar?

We might be able to address the footer issue when this gets in #1763040: Accumulative patch of fixes and enhancements as we might be able to use RGBa.

The last submitted patch, 5: drupal8.x-Added_options_to_bartik_theme-973998-3.patch, failed testing.

mgifford’s picture

Status: Needs work » Needs review
FileSize
5.35 KB

Reroll of #6.

emma.maria’s picture

Version: 8.0.x-dev » 8.1.x-dev
mgifford’s picture

Status: Needs review » Needs work
Issue tags: +Accessibility

Needs re-roll.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

emma.maria’s picture

Assigned: falkendk » Unassigned
Category: Task » Feature request
talhaparacha’s picture

Patch from 6 applies cleanly to 7.x (commit #1990861) so there's no need for a re-roll there.

Patch from 15 has been re-rolled to 8.2.x (commit #463d844). I haven't worked with JS before so might have made a mistake. Please review that section of the patch with more diligence.

talhaparacha’s picture

Status: Needs work » Needs review
FileSize
5.15 KB

Same as #20, forgot previously to forward it for testing...

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.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.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.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.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.

komalk’s picture

FileSize
5.9 KB

Patch #21 failed to apply on 9.2.x.
Re-rolled the patch.

vsujeetkumar’s picture

FileSize
6.32 KB
339 bytes

Added unknown word to "dictionary.txt"

vsujeetkumar’s picture

FileSize
6.34 KB
344 bytes

Fixed the "properties-order" issue in css file.

vsujeetkumar’s picture

FileSize
7.7 KB
1.25 KB

Updated "preview.es6.js" file according to "preview.js"

vsujeetkumar’s picture

FileSize
7.7 KB
775 bytes

Fixed the issue (error Insert `,` prettier/prettier).

djsagar’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
126.29 KB
137.54 KB

Hi,

The patch #35 working fine and Add color options for foreground text where background colors.

I attach the attachment as prove.

Thanks!

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.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 35: 973998_35.patch, failed testing. View results

catch’s picture

Status: Needs work » Reviewed & tested by the community

Restoring status after HEAD was broken.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs change record

I believe we need a change record that explains the changes and how they impact our users.

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.

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 » Functionality