Visitar URL original
Remove file-input-disabled from file-input partial by mahoneycm · Pull Request #2114 · uswds/uswds-site · GitHub
Skip to content

Remove file-input-disabled from file-input partial - #2114

Merged
thisisdano merged 3 commits into
dw-changelog-button-outline-whcfrom
cm-remove-file-input-disabled
Jun 5, 2023
Merged

thisisdano merged 3 commits into
dw-changelog-button-outline-whcfrom
cm-remove-file-input-disabled

Conversation

@mahoneycm

@mahoneycm mahoneycm commented May 31, 2023 •

Copy link
Copy Markdown
Contributor

Summary

Remove file-input-disabled from component partial to resolve build error

Related 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

  1. On main, run npm run build
  2. Confirm error
  3. git checkout cm-remove-file-input-disabled
  4. Run npm run build
  5. Confirm error is extinguished
  6. Vising file input page
  7. Confirm page and component previews are displaying correctly
  • Run git pull origin [base branch] to pull in the most recent updates from your base and check for merge conflicts. (Often, the base branch is main).

@mahoneycm
mahoneycm requested a review from amyleadem May 31, 2023 19:26
@amyleadem amyleadem mentioned this pull request May 31, 2023
23 of 24 tasks
@amyleadem amyleadem linked an issue Jun 2, 2023 that may be closed by this pull request

@amyleadem amyleadem left a comment

Copy link
Copy Markdown
Contributor

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 :)

@mahoneycm

Copy link
Copy Markdown
Contributor Author

@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!

Comment on lines +5 to +10
- date: NNNN-NN-NN
summary: Removed disabled file input variant preview.
summaryAdditional:
githubPr: 2114
githubRepo: uswds-site
versionUswds: 3.5.0

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor

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.

Comment thread _data/changelogs/component-file-input.yml

@amyleadem amyleadem left a comment

Copy link
Copy Markdown
Contributor

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 <93996430+amyleadem@users.noreply.github.com>
@mahoneycm

Copy link
Copy Markdown
Contributor Author

@amyleadem committed!

@mahoneycm
mahoneycm requested a review from amyleadem June 2, 2023 19:52
@amyleadem
amyleadem requested a review from thisisdano June 2, 2023 20:01
@thisisdano
thisisdano merged commit 5e95dc1 into dw-changelog-button-outline-whc Jun 5, 2023
@mejiaj
mejiaj deleted the cm-remove-file-input-disabled branch February 21, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removed file-input-disabled variant from component partial

4 participants