Skip to content

Story: Add achievement card#2143

Merged
jlchilders11 merged 7 commits intodevelopfrom
jc/achievement-cards
Mar 18, 2026
Merged

Story: Add achievement card#2143
jlchilders11 merged 7 commits intodevelopfrom
jc/achievement-cards

Conversation

@jlchilders11
Copy link
Copy Markdown
Collaborator

@jlchilders11 jlchilders11 requested a review from fromagge March 9, 2026 21:35
Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

Overall this looks great! I just left 2 comments about text placement + Badge component variant

Comment thread templates/v3/includes/_achievement_card.html Outdated
Comment thread templates/v3/includes/_achievement_card.html
@jlchilders11 jlchilders11 requested a review from julhoang March 13, 2026 16:39
@jlchilders11 jlchilders11 changed the base branch from v3 to develop March 17, 2026 15:00
Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

Hi @jlchilders11 , this is looking great!! I left a few suggestions on using more precise semantic HTML elements for the text, plus a nit UI bug with max-width not being properly applied.

Achievements - Optional: A list of achievements, each of which has points, a title, and a description
{% endcomment %}

<div class="wide-card card py-large">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I can see you add a max-width for the card, but it's currently not being applied properly since card is overriding wide-card – we just need to swap their order here to card wide-card py-large 😄

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This seems to work in either order in firefox, which is strange.


<div class="wide-card card py-large">
<div class="card__header">
<span class="card__title">Achievements</span>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's change this to <h2> or <h3>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

While I am happy to make this change, adding headers into include components does make me nervous. Since we are unaware of the surrounding context when it is included, it can lead to missing or unnatural heading hierarchies which dings us on accessibility.

Comment thread templates/v3/includes/_achievement_card.html Outdated
Comment thread templates/v3/includes/_achievement_card.html Outdated
Comment thread templates/v3/includes/_achievement_card.html
@jlchilders11 jlchilders11 requested a review from julhoang March 18, 2026 14:59
Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @jlchilders11 !! I just have 1 last request to update the font-size token since it doesn't exist 🙏

Comment thread static/css/v3/achivement-card.css Outdated
.achievement-card__ach-text {
/* Sans/Desktop/Regular/XS/Default */
font-family: var(--font-sans);
font-size: var(--size-xs);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This token doesn't exist and it should be --font-size-xs 😄

@jlchilders11 jlchilders11 requested a review from julhoang March 18, 2026 16:15
Copy link
Copy Markdown
Collaborator

@julhoang julhoang left a comment

Choose a reason for hiding this comment

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

🙌

@jlchilders11 jlchilders11 merged commit 7091a09 into develop Mar 18, 2026
4 checks passed
@jlchilders11 jlchilders11 deleted the jc/achievement-cards branch March 18, 2026 16:26
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.

3 participants