Active
Project:
Drupal core
Version:
main
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Feb 2017 at 05:48 UTC
Updated:
30 Apr 2022 at 13:55 UTC
Jump to comment: Most recent
Comments
Comment #2
almaudoh commentedThis same bug is being fixed at #2642122: Overriding already overridden libraries-override requires knowledge of previous libraries-overrides. This issue is a duplicate.
Comment #3
chi commentedI checked that thread before creating this one. From the issue summary this sounds as a different problem. In this case a sub theme has nothing to override by needs to preserve overrides made in base theme. The recent patch in #2642122 does not resolve the problem for me.
Comment #4
almaudoh commentedI'm not very clear on your issue. In HEAD any overrides in the base theme also affects the sub theme. If you want a subtheme to revert an override done in a base theme then you have to override the one done by the base theme.
Can you provide specific details of the Seventeen theme problem along with the libraries.yml file
Comment #5
chi commentedWell, this does not work for me.
I've added steps to reproduce the bug to the issue summary.
Comment #6
chi commentedComment #7
almaudoh commentedThe example .info.yml file references a
seventeen/globallibrary. Can you provide that library.yml or is it not required to reproduce the bug?Comment #8
chi commentedThe file is in the same repository, but I am sure it isn't connected to the bug.
http://cgit.drupalcode.org/seventeen/tree/seventeen.libraries.yml?h=8.x-...
Comment #12
bskibinskiI have the same issue, it is a seperate issue from the related issue. Or it might be related, but they're trying to fix the namespaces. This issue is about subthemes getting the overrides from the base_theme.
I made a basetheme with the following overrides:
When the base theme is 'active/default', it works.
When i switch to a subtheme (based on the base-theme that has the overrides), the overrides don't work.
Workaround at the moment is to declare the same 'libraries-override' in every subtheme.
Comment #13
cedeweyThe patch in this issue resolves this problem for me - https://www.drupal.org/project/drupal/issues/2642122
Here's a working example - https://git.drupalcode.org/project/encontrarlo/commit/64bbcf8
Comment #18
larowlanIs this still an issue?
There are conflicting reports of this being resolved by the related issue so it's not clear
Comment #19
aaronchristian commentedI'm seeing this issue while using stable9 as my base.
It overrides a bunch of stylesheets in
system/base. If you try to override/remove any of these replacements, the library system won't replace/remove stable9's with your custom themes.Comment #20
chi commentedUpdating the issue status per #19.