Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCCP: Consolidate card rating markup #8413

Merged
merged 5 commits into from
May 22, 2024
Merged

TCCP: Consolidate card rating markup #8413

merged 5 commits into from
May 22, 2024

Conversation

chosak
Copy link
Member

@chosak chosak commented May 13, 2024

This commit consolidates several different ways that we markup TCCP card ratings (the colored icon next to a description like "Pay less interest").

The new apr_rating macro can be used to render just this bit; various places on the card list and details view now use this macro.

Styles have been reworked to support this new approach.

How to test this PR

To test, run a local server and visit pages like:

Check sizing on mobile and desktop widths.

Screenshots

Display should be unchanged from before:

image image image

Notes and todos

An unrelated obsolete comment has also been removed from the detail page template; see internal https://github.local/Design-Development/Design-Thinking-and-User-Research/issues/306#issuecomment-354312 for context.

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code follows the standards laid out in the CFPB development guidelines

@chosak chosak changed the title Tccp/unify card rating TCCP: Consolidate card rating markup May 13, 2024
This commit consolidates several different ways that we markup TCCP
card ratings (the colored icon next to a description like "Pay less
interest").

The new apr_rating macro can be used to render just this bit; various
places on the card list and details view now use this macro.

Styles have been reworked to support this new approach.

To test, run a local server and visit pages like:

- http://localhost:8000/consumer-tools/credit-cards/explore-cards/cards/
- http://localhost:8000/consumer-tools/credit-cards/explore-cards/cards/vinton-county-national-bank-consumer-credit-card/

Check sizing on mobile and desktop widths.
* Add APR rating descriptive text for assistive technologies, wrap APR ratings in <dl>

* Replace dl spacing overrides with footer margin
@chosak chosak added this pull request to the merge queue May 22, 2024
Merged via the queue into main with commit 0d501fa May 22, 2024
17 checks passed
@chosak chosak deleted the tccp/unify-card-rating branch May 22, 2024 15:45
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.

None yet

4 participants