By lauriii on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Issue links:
Description:
Stylesheets-override has been removed. hook_library_info_alter() can be used as an alternative. This was necessary to fix a critical issue in the theme system. There is an issue to bring this functionality back using libraries #2451411: Add libraries-override to themes' *.info.yml. Also, see this change record for the change in how stylesheets-remove works. https://www.drupal.org/node/2473869
Themers were able to override stylesheets on themename.info.yml file:
stylesheets-override:
- vertical-tabs.css
but now this has to be done in themename.theme file:
/**
* Implements hook_library_info_alter().
*/
function themename_library_info_alter(&$libraries) {
if (isset($libraries['drupal.vertical-tabs'])) {
unset($libraries['drupal.vertical-tabs']['css']['component']['misc/vertical-tabs.css']);
$libraries['drupal.vertical-tabs']['dependencies'][] = 'themename/vertical-tabs';
}
}
Comforter kitten:

| Attachment | Size |
|---|---|
| 159706-357x421-kitten.jpg | 11.4 KB |
Impacts:
Themers
Comments
Nice catch-a-fish lauriii!
Stylesheet-override sure can be removed!
ps. comforter kitten is very nice.
We need more kittens in our
We need more kittens in our CRs
+1 for more comforter kittens
+1 for more comforter kittens :)
Comforter kitten makes D8
Comforter kitten makes D8 change much better! :)