-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Uncouple uswds style #2532
feat!: Uncouple uswds style #2532
Conversation
7edc17c
to
bd4fd1f
Compare
d056fa2
to
c48fdcf
Compare
c48fdcf
to
7a7f21d
Compare
This seems like a nice performance quick win, thanks for doing this @jpandersen87. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Has this been tested on a react-uswds consuming project? Usually that's done by updating the project dependency to the head commit of this branch:
|
Not directly but for our project (ReportStream) I've been maintaining manual patches that matches the new 'index.css' output with success. We would get unwanted side effects when attempting to use a higher version of uswds than the package used due to the discrepancies between the uswds embedded in the index at default settings and our style sheet with customized settings (at the time it was unknown that this was the cause 😫). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not appear to have design changes! good to go
I'm still using v5 of @trussworks/react-uswds on a project so I cherry-picked these changes on top of v5.5.0 (see fork). My
The new size of |
Updated title to make this a major version change, since when this merges I want this to be noted as potentially breaking due to being a large enough change. Will make life easier for consumers if they run into challenges due to a different setup |
I see this was merged! Its a good change, I never did get around to testing it on one of our projects though. 🤞🏻 my hesitation is just paranoia |
Summary
This PR removes the
@forward 'uswds'
line from the project's style index. This fixes the issue of uswds styles being included in the project'sindex.css
file. Storybook's custom stylesheet has been updated to not reference the project's style index as the preview module is independently importing it along with uswds directly.Related Issues or PRs
closes #2270
How To Test