-
Notifications
You must be signed in to change notification settings - Fork 197
Remove file-input-disabled from file-input partial #2114
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
Remove file-input-disabled from file-input partial #2114
Conversation
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.
@mahoneycm
Looks good to me! Confirming that this resolves the build error.
What do you think about adding a changelog for this change? It might also be better suited for whatever removed the file the caused the break in the first place, but I am not sure where that is :)
@amyleadem That's a good idea! I believe this came from the normalize disabled forms work. I'll draft something and make sure Dan sees! |
- date: NNNN-NN-NN | ||
summary: Removed disabled file input variant preview. | ||
summaryAdditional: | ||
githubPr: 2114 | ||
githubRepo: uswds-site | ||
versionUswds: 3.5.0 |
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.
@amyleadem Added changelog item here! I was on the fence about adding summaryAdditional
clarifying something like:
Our work to normalize disabled form elements caused us to remove the
.json
file required for component preview.
But was worried it was unnecessary.
We can also consider adding these previews back once we get finish our disabled form guidance.
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.
I think you made the right call. I don't see a need to add more details.
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.
Looking good! Just suggested one small change to identify what the change affects.
Co-authored-by: Amy Leadem <[email protected]>
@amyleadem committed! |
Summary
Remove
file-input-disabled
from component partial to resolve build errorRelated issue
Closes #2113
Preview link
File input →
Problem statement
The disabled variant
json
file was removed as part of uswds/uswds#5063, causing build errors on site when it tries to find it.Solution
Remove template capture from the component partial
Testing and review
npm run build
git checkout cm-remove-file-input-disabled
npm run build
git pull origin [base branch]
to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch ismain
).