Problem/Motivation
As of v8.x-2.7, the uswds.libraries.yml file has a reference to a stylesheet (dropbutton.component.css) from the Seven theme that used to be in Drupal core (prior to D10). Since the referenced CSS file no longer exists, I get a 404 on the browser's developer tools network tab.
Steps to reproduce
- Install and enable the uswds theme (or a child theme).
- Open developer tools and go to the network tab.
- Go to home page.
- You should see a 404 for /core/themes/seven/css/components/dropbutton.component.css
Proposed resolution
- Remove dependency on Seven theme, which is now on contrib space, by maintaining our own stylesheets.
Remaining tasks
- Discuss best path forward.
Comments
Comment #2
timwoodComment #3
brianbrarian commentedIn the meantime, here's a q&d patch if one has already added the contrib Seven theme.
Comment #4
devkinetic commentedThis is a upgrade blocker for D11 now.
Comment #5
smustgrave commentedGoing to make another suggestion, what if this file is just copied into the uswds theme and remove the dependency on seven? Seems way overkill to load an entire (un-supported) theme to load a single file. Unless I'm missing where other templates could be used?
Comment #6
smustgrave commentedSeven has been dropped so this can probably be closed
Comment #7
mmenavas commentedThank you @smustgrave! It looks like you fixed the issue on https://www.drupal.org/project/uswds/issues/3518334.