Questions tagged [uswds]

Use for questions relating to USWDS: "A design system that helps the federal government build fast, accessible, mobile-friendly websites."

6 questions
1
vote
0 answers

How can I resolve "Error: Can't find stylesheet to import." for the uswds source styles (Ver 3.3.0)?

I'm using Rails 6.1.7 with jsbundling-rails and cssbundling-rails. I'm bundling with Webpack and Dart sass for js and css respectively. I've tried to follow the docs, and added the sass load paths as follows in my webpack.config.js: module: { …
1
vote
1 answer

Shared UI component

I'm working on a project where I'm creating a Shareable UI component for my team. This project is built using Angular CLI and is using the USWDS framework. So far I have been successful in creating a custom npm package on a private npm repository…
Herr Josua
  • 453
  • 7
  • 19
0
votes
0 answers

How do I resolve the "module not found" error from NextJS's build compilation?

I have a NextJS app that uses the USWDS and Sass. I have followed their instructions on how to create the Sass entry point, theme, and custom file, but am now facing a webpack error when I run next build. I receive this…
Joe K
  • 1
0
votes
1 answer

Upgrading USWDS, @extend css class not showing in SCSS @forward

I am upgrading to the US Web Design System 3, and am running into an interesting problem related to using @forward. Some of my class extends do not seem to be working. Here is my code. Custom component //extends.scss @use "uswds-core" as…
Billy Hunt
  • 51
  • 6
0
votes
1 answer

USWDS - How to align form labels to the left of inputs?

I'm using the U.S. Web Design System (USWDS) in a project I'm working on, and I'm struggling with something that seems superficially like it should be quite simple: How can I align form labels so they appear to the left of their corresponding…
bjmc
  • 2,970
  • 2
  • 32
  • 46
0
votes
1 answer

Angular CLI - missing SASS Import

I'm working on a project that is using the the U.S. Web Design Standards framework and I have imported all the SASS files into my main.scss file: @import "bourbon/bourbon"; @import "abstracts/variables"; // This imports all the required files…
Herr Josua
  • 453
  • 7
  • 19