Skip to content

Conversation

mitchmoccia
Copy link
Contributor

@mitchmoccia mitchmoccia commented Jan 20, 2023

This is a pretty large rewrite of the input mask component with a ton of improvements. I tried to keep the requirements to implement as close to version 1 as possible, however, there are some additional requirements that a developer must implement if they upgrade to this version.

The most important update required is the addition of a .usa-input-mask wrapper and the class .usa-input-mask__field added to the input element. This allowed for some great feedback if a user types an incorrect character. This also follows the character count architecture FYI.

Here is updated input mask implementation guidance featuring previews with working masks:
https://federalist-ead78f8d-8948-417c-a957-c21ec5617a57.sites.pages.cloud.gov/preview/uswds/uswds-site/mm-input-mask-guidance/components/input-mask/

Here is the component page:
https://federalist-3b6ba08e-0df4-44c9-ac73-6fc193b0e19c.sites.pages.cloud.gov/preview/uswds/uswds/mm-input-mask/?path=/story/components-form-inputs-text-input-mask--ssn

UPDATE: Here is the uswds-site PR for the guidance udpates:
uswds/uswds-site#1995

Looking forward to feedback!

Amy Leadem and others added 30 commits July 1, 2022 10:32
Co-authored-by: James Mejia <james.mejia@gsa.gov>
Co-authored-by: James Mejia <james.mejia@gsa.gov>
- Use code for pipe character
- Add empty alt text for pseudoelement to prevent character being read on screenreaders

Based on guidance https://www.w3.org/TR/css-content-3/#alt
USWDS documentation on header says there is a theme setting to adjust the logo text width. It does not work with header-extended. This fixes that.
https://designsystem.digital.gov/documentation/settings/
Verify where else this variable is used and if the default value needs to be updated. Documentation says default values 33%, header-extended uses default value 50%
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…ils-1.4.1

Bump loader-utils from 1.4.0 to 1.4.1
@mejiaj mejiaj self-assigned this Mar 16, 2023
thisisdano and others added 4 commits March 20, 2023 11:04
- Describe what makes a breaking change
- Add section for related PRs
- Remove  checkbox item related to Changelog
- Fixed spacing
- Added link to uswds-site
- Add missing word

Co-authored-by: Amy Leadem <93996430+amyleadem@users.noreply.github.com>
Co-authored-by: mahoneycm <charlie.mahoney@bixal.com>
@mejiaj
Copy link
Contributor

mejiaj commented Apr 9, 2023

@thisisdano hastily merged develop, but reverted back to 5f3a992.

@amyleadem
Copy link
Contributor

amyleadem commented Apr 24, 2023

Closing this PR in favor of #5227

@amyleadem amyleadem closed this Apr 24, 2023
@amyleadem amyleadem removed this from the uswds 3.5.0 milestone Apr 24, 2023
@amyleadem amyleadem reopened this Apr 25, 2023
@amyleadem amyleadem closed this Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.