Skip to content

Apply inherited font smoothing to base unstyled button styles#202

Merged
aduth merged 1 commit intomainfrom
aduth-unstyled-smoothing
Mar 23, 2021
Merged

Apply inherited font smoothing to base unstyled button styles#202
aduth merged 1 commit intomainfrom
aduth-unstyled-smoothing

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Mar 23, 2021

Why: These were applied to modifier states for unstyled buttons in #201, but should have also been applied to the base styles, to override USWDS unstyled button styles.

**Why**: These were applied to modifier states for unstyled buttons in #201, but should have also been applied to the base styles, to override USWDS unstyled button styles.
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 085daf9 into main Mar 23, 2021
@aduth aduth deleted the aduth-unstyled-smoothing branch March 23, 2021 19:32
aduth added a commit to 18F/identity-idp that referenced this pull request Mar 24, 2021
**Why**: 18F/identity-design-system#202 and 18F/identity-design-system#201 intended to inherit font smoothing, but unfortunately miss these two states which are handled and inherited from USWDS.
aduth added a commit to 18F/identity-idp that referenced this pull request Mar 24, 2021
* Upgrade to identity-style-guide 5.0.3

**Why**: Fix unstyled button link appearance

* LG-3865: Update BassCSS link buttons to USWDS

**Why**: We should be able to expect that the visual appearance of BassCSS `btn-link` and the USWDS unstyled button are identical. As such, migrating to the unstyled button can happen independently of the broader BassCSS migration to simplify future effort.

Excludes SimpleForm buttons, since all SimpleForm buttons will apply the `btn btn-primary` class which may conflict with USWDS buttons. This is also why the class isn't yet deprecated in the erb-lint.yml file.

See: https://github.com/18F/identity-idp/blob/ce7608a50ea9f7b8d8c747c63cc0c49549eac4a7/config/initializers/simple_form.rb#L5

* Revert hover color to default link color

See inline comment

* Update selector for back link test

* Preserve link color for visited, unstyled buttons

**Why**: See inline code comment

* Apply inherited font smoothing to hover, active unstyled buttons

**Why**: 18F/identity-design-system#202 and 18F/identity-design-system#201 intended to inherit font smoothing, but unfortunately miss these two states which are handled and inherited from USWDS.
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