Skip to content

Button: add visible pressed state#635

Merged
mkernohanbc merged 5 commits intomainfrom
632-button-pressed-state
Feb 20, 2026
Merged

Button: add visible pressed state#635
mkernohanbc merged 5 commits intomainfrom
632-button-pressed-state

Conversation

@mkernohanbc
Copy link
Copy Markdown
Contributor

This PR addresses the issues identified by @ty2k in #632, by adding additional styling when a button is pressed (using the [data-pressed] attribute).

ba9b3c0 also does some cleanup to replace various hardcoded values with tokenized ones.

Primary Button Large is pressed:
Screenshot 2026-02-18 at 9 25 32 AM

Secondary Button Medium is pressed:
Screenshot 2026-02-18 at 9 23 03 AM

Primary Button Medium is pressed:
Screenshot 2026-02-18 at 9 23 07 AM

@mkernohanbc mkernohanbc added this to the Components v0.7.0 milestone Feb 18, 2026
@mkernohanbc mkernohanbc self-assigned this Feb 18, 2026
@mkernohanbc mkernohanbc added the Components Changes or issues affect the design-system-react-components package label Feb 18, 2026
@mkernohanbc mkernohanbc linked an issue Feb 18, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@ty2k ty2k left a comment

Choose a reason for hiding this comment

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

Everything looks great visually, but I think we should avoid replacing those pixel values unless the tokens we're using are genuinely meant for that purpose.

Comment thread packages/react-components/src/components/Button/Button.css
Comment thread packages/react-components/src/components/Button/Button.css
@mkernohanbc mkernohanbc requested a review from ty2k February 20, 2026 17:25
Copy link
Copy Markdown
Contributor

@ty2k ty2k left a comment

Choose a reason for hiding this comment

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

🚀

@mkernohanbc mkernohanbc merged commit 54a0332 into main Feb 20, 2026
5 checks passed
@mkernohanbc mkernohanbc deleted the 632-button-pressed-state branch February 20, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Components Changes or issues affect the design-system-react-components package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button component is missing styling for pressed state

3 participants