Skip to content

LG-3865: Remove BassCSS Module: Btn#4836

Merged
aduth merged 5 commits intomainfrom
aduth-lg-3865-rm-btn
Apr 1, 2021
Merged

LG-3865: Remove BassCSS Module: Btn#4836
aduth merged 5 commits intomainfrom
aduth-lg-3865-rm-btn

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Mar 25, 2021

Why: As a user, I expect that login.gov has a consistent visual style, and that my page load times are not prolonged by loading redundant CSS. As a developer, I expect that existing references to BassCSS module classes are replaced with equivalent USWDS or ad hoc alternatives, so that we can successfully migrate away from and eliminate our dependency on BassCSS.

Screenshot:

This is just one example of a primary form submission being updated to an equivalent design system button:

Before After
image image (1)

@aduth
Copy link
Contributor Author

aduth commented Mar 31, 2021

This should be ready now.

@aduth aduth marked this pull request as ready for review March 31, 2021 14:29
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!

Copy link
Contributor

Choose a reason for hiding this comment

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

This is my new favorite property

Copy link
Contributor

Choose a reason for hiding this comment

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

these are great matcher cleanups!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

these are great matcher cleanups!

Motivated in part because the previous implementation would have exceeded Rubocop's acceptable line length 😄

aduth added 5 commits March 31, 2021 14:39
**Why**: As a user, I expect that login.gov has a consistent visual style, and that my page load times are not prolonged by loading redundant CSS. As a developer, I expect that existing references to BassCSS module classes are replaced with equivalent USWDS or ad hoc alternatives, so that we can successfully migrate away from and eliminate our dependency on BassCSS.
**Why**: While it's the standard button size for most form buttons, notably the "unstyled" button doesn't unset big appearance, and in most all usage we'd not want unstyled buttons to appear large. Also good to be explicit even if standard, since "big" should arguably be a conscious decision for a form button.
@aduth aduth force-pushed the aduth-lg-3865-rm-btn branch from eb0a75f to 6cad617 Compare March 31, 2021 18:40
@aduth aduth merged commit c69fc80 into main Apr 1, 2021
@aduth aduth deleted the aduth-lg-3865-rm-btn branch April 1, 2021 12:15
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