'Load USWDS CSS' form option is misleading

Open Beginner friendly
#2,154 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start by finding the Touchpoints form configuration UI and the code that handles the “Load USWDS CSS” option; the issue does not name specific files or tests. Reproduce the embedded form with USWDS loaded by the host page, then toggle the option off and check which styles are omitted. Done when the option's behavior or label matches what it promises and the embedded form displays as expected.

Written by the indexing model from the issue text.

Description

bug
What happened?

One of the configuration options for a Touchpoints form is the boolean 'Load USWDS CSS'.

Image

This option controls more than it claims to. When it is toggled off, no CSS is loaded with the Touchpoints form, neither USWDS CSS, nor the Touchpoints-specific form CSS.

The option should be made to do what it says it does, either by changing what it does or by changing the label on the option.

Steps to reproduce
  1. Create a new 'Open-ended feedback' form.
  2. Set the delivery mode to 'Embedded inline on your website'.
  3. Load the form on an existing webpage that independently loads USWDS.
  4. View the form on the webpage. It should look fine.
  5. Toggle off 'Load USWDS CSS' for the form.
  6. View the form on the webpage.

Expected behavior: If the toggle only controlled USWDS CSS, then the form should look fine since it inherits USWDS from its parent page.
Actual behavior: The form looks weird because it is missing Touchpoints-specific CSS too.

Environment

No response

Relevant log output

Security check
Dominant language
JavaScript
Stars
73
Forks
38
Avg merge
14h 53m
Merged PRs (30d)
12

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GSA/touchpoints

All issues in GSA/touchpoints

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.