Skip to content

Add "Coding Standards" section to contributing guide#271

Merged
aduth merged 1 commit intomainfrom
aduth-contributing-coding-standards
Nov 17, 2021
Merged

Add "Coding Standards" section to contributing guide#271
aduth merged 1 commit intomainfrom
aduth-contributing-coding-standards

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 17, 2021

Why: To better communicate the approach to extending USWDS.

**Why**: To better communicate the approach to extending USWDS.
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit f37ba32 into main Nov 17, 2021
@aduth aduth deleted the aduth-contributing-coding-standards branch November 17, 2021 21:05
aduth added a commit that referenced this pull request Nov 22, 2021
**Why**: The error input selector in USWDS does not qualify as one of `.usa-input`, `.usa-textarea`, or `.usa-select`. In many cases, this makes little difference since the modifier would be applied to an element with one of those classes. However, this is not strictly required, and causes some challenge in the IdP with SimpleForm compatibility. Furthermore, per updated guidance in #271, selectors with overriding styles should seek to precisely match the USWDS selector it is overriding.

Future work should seek to bring stylesheet files into closer alignment with USWDS files where these styles are defined (tracked in LG-5398).
aduth added a commit that referenced this pull request Nov 23, 2021
* Match usa-input-error selector to USWDS

**Why**: The error input selector in USWDS does not qualify as one of `.usa-input`, `.usa-textarea`, or `.usa-select`. In many cases, this makes little difference since the modifier would be applied to an element with one of those classes. However, this is not strictly required, and causes some challenge in the IdP with SimpleForm compatibility. Furthermore, per updated guidance in #271, selectors with overriding styles should seek to precisely match the USWDS selector it is overriding.

Future work should seek to bring stylesheet files into closer alignment with USWDS files where these styles are defined (tracked in LG-5398).

* Add CHANGELOG note

* Reorder CHANGELOG bug fixes > dependencies
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.

2 participants