Bartik uses a library bartik/global-styling that allows the custom css to be attached to. If a module is not using a library with the explicit naming of global-styling then the custom css code will not be attached to the theme.

To reproduce, create a custom theme with a css library named something other than global-styling.

It's probably better to have the module attach a custom library instead of hoping that an existing one is present.

CommentFileSizeAuthor
#2 attach-library-2923573-2.patch1.86 KBsegovia94
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

segovia94 created an issue. See original summary.

segovia94’s picture

Status: Active » Needs review
FileSize
1.86 KB

This patch adds the library to the active theme and then attaches it.

  • encelado committed 90d64be on 8.x-1.x authored by segovia94
    Issue #2923573 by segovia94: Styles fail to display on themes that do...
encelado’s picture

Assigned: Unassigned » encelado
Status: Needs review » Fixed

Thank you for your valuable contribution! Patched module is already available in development version.

Status: Fixed » Closed (fixed)

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