Skip to content

Story 2191: Button Badge Component#2276

Merged
jlchilders11 merged 6 commits intodevelopfrom
jc/badge-button
Apr 15, 2026
Merged

Story 2191: Button Badge Component#2276
jlchilders11 merged 6 commits intodevelopfrom
jc/badge-button

Conversation

@jlchilders11
Copy link
Copy Markdown
Collaborator

Issue: #2191

Summary & Context

  • Implements the styling and functionality of the Badge Button Component

Changes

  • Adds _badge_button.html and badge-button.css
  • Implements button example on V3 Page

‼️ Risks & Considerations ‼️

Please list any potential risks or areas that need extra attention during review/testing
None

Screenshots

image image

Self-review Checklist

  • Tag at least one team member from each team to review this PR
  • Link this PR to the related GitHub Project ticket

Frontend

  • UI implementation matches Figma design
  • Tested in light and dark mode
  • Responsive / mobile verified
  • Accessibility checked (keyboard navigation, etc.)
  • Ensure design tokens are used for colors, spacing, typography, etc. – No hardcoded values
  • Test without JavaScript (if applicable)
  • No console errors or warnings

@jlchilders11 jlchilders11 requested review from herzog0 and julioest April 3, 2026 20:02
@jlchilders11 jlchilders11 linked an issue Apr 3, 2026 that may be closed by this pull request
@@ -0,0 +1,32 @@
.badge-button__radio {
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.

should the cursor be a pointer?

Copy link
Copy Markdown
Collaborator

@herzog0 herzog0 left a comment

Choose a reason for hiding this comment

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

looking pretty good! just a couple of questions there, but I'm pre-approving for your convenience

Comment thread templates/v3/includes/_badge_button.html Outdated
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 This is great work!

Just one additional thing I want to flag for your consideration:

From my understanding, these badge buttons are meant to be used as a group rather than as standalone instances. Can you consider setting up a parent radiogroup component (or adapt the current _badge_button to become a group), similar to _post_filter.html? This would let us specify an aria-label and other accessibility attributes at the group level, making the overall accessibility configuration more meaningful and complete.

Image

Comment thread templates/v3/includes/_badge_button.html Outdated
Comment thread static/css/v3/badge-button.css
Comment thread static/css/v3/badge-button.css Outdated
Comment thread static/css/v3/badge-button.css
Comment thread templates/v3/includes/_badge_button.html Outdated
@jlchilders11 jlchilders11 requested a review from julhoang April 7, 2026 16:44
Copy link
Copy Markdown
Collaborator

@julioest julioest left a comment

Choose a reason for hiding this comment

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

Other folks pointed out things I had in mind - Approved!

Comment thread static/css/v3/badge-button.css Outdated
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.

I just left a small request to provide color for the focus outline ring – otherwise LGTM!

Comment thread static/css/v3/badge-button.css Outdated


.badge-button:has(.badge-button__radio:focus-visible) {
outline: auto;
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 think this is producing a black outline, let's provide it with a color:

outline: auto -webkit-focus-ring-color;

Copy link
Copy Markdown
Collaborator

@kattyode kattyode left a comment

Choose a reason for hiding this comment

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

QA Approved

@jlchilders11 jlchilders11 merged commit 1699e4a into develop Apr 15, 2026
4 checks passed
@jlchilders11 jlchilders11 deleted the jc/badge-button branch April 15, 2026 13:59
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.

Badge Button Component

5 participants