Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Deprecating `usa-input-required` has important backward-compatibility concerns #2238
In version 1.4.0 we indicated that we would deprecate
While it makes very good sense to promote best practices, deprecating critical component variants is a challenge. The Standards should be a clear guide for best practices and we should not actively enable non–best practices unless we have little choice. This may be one of those cases where there's not only a large potential gap between the best practice and user expectations, but also a case where our our earlier support for
These are still part of the codebase here: https://github.com/18F/web-design-standards/blob/develop/src/stylesheets/elements/_inputs.scss#L89-#L92.
We discussed that we did not plan to deprecate these in terms of removing them from the codebase, we will just not be advocating them as a "best practice." Teams may decide to use the required field if it makes sense for their use cases.