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

mmenavas created an issue. See original summary.

timwood’s picture

brianbrarian’s picture

In the meantime, here's a q&d patch if one has already added the contrib Seven theme.

devkinetic’s picture

This is a upgrade blocker for D11 now.

smustgrave’s picture

Going 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?

smustgrave’s picture

Seven has been dropped so this can probably be closed

mmenavas’s picture

Status: Active » Fixed
Related issues: +#3518334: Update Classy version and drop seven for D11

Thank you @smustgrave! It looks like you fixed the issue on https://www.drupal.org/project/uswds/issues/3518334.

Status: Fixed » Closed (fixed)

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