Trussworks React component HTML differences with standard USWDS components #2676
jhancock532
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A side effect of extending components is that in some cases it creates HTML unlike USWDS:
For example, the search component. In USWDS, the
usa-search--big
class is applied on the main form.The React component will instead generate HTML with the
usa-search--big
class applied on childThoughts on the tradeoff of making the library more flexible with extendable components & reuse of USWDS styles in different contexts, vs trying to follow USWDS's template structure exactly?
Beta Was this translation helpful? Give feedback.
All reactions