Skip to content

Add new Button component - #3266

Merged
rosslovas merged 1 commit into
mainfrom
ross/new-button-component
Jul 29, 2026
Merged

Add new Button component#3266
rosslovas merged 1 commit into
mainfrom
ross/new-button-component

Conversation

@rosslovas

@rosslovas rosslovas commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new <Button label="Label" /> component.

Results

Target design:

Screenshots image image

As implemented:

See in action at https://stoctodocspr3266.z22.web.core.windows.net/components#button

Light mode image
Dark mode

(note the background colour doesn't match the target design (yet), but the buttons themselves should)
image

@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3266.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@rosslovas
rosslovas force-pushed the ross/new-button-component branch 2 times, most recently from ed53c59 to a634ace Compare July 29, 2026 01:39
Comment thread package.json
},
"devDependencies": {
"@playwright/test": "^1.59.1",
"@playwright/test": "^1.60.0",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I ran into a hanging installation issue, bumped to get the fix: microsoft/playwright#41133

@rosslovas
rosslovas force-pushed the ross/new-button-component branch from a634ace to e3c76c4 Compare July 29, 2026 02:41
@rosslovas
rosslovas force-pushed the ross/new-button-component branch from e3c76c4 to 11d95f5 Compare July 29, 2026 02:42
@rosslovas
rosslovas marked this pull request as ready for review July 29, 2026 02:43
@rosslovas
rosslovas requested a review from ellen-octopus July 29, 2026 02:44
Comment thread public/docs/css/main.css
text-align: center;
}

.btn--medium {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Class naming to fit the BEM convention, which seems to be what's followed elsewhere

@ellen-octopus ellen-octopus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, thanks @rosslovas 👏🏻

Comment thread public/docs/css/main.css

/* Button states */
.btn:hover:not(:disabled) {
background: var(--colorBackgroundPrimaryHover);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nitpick: I presume the mix of tokens between colorBackgroundPrimaryHover and colorButtonBackgroundDisabled is intentional? Ideally it would all be a semantic token with Button or a generic token

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, intentional on my part at least by virtue of following the design as-is in Figma. It's a good point, I'll note it down as something to discuss with the team when I get a chance, thank you!

@rosslovas
rosslovas merged commit f808ffb into main Jul 29, 2026
6 of 7 checks passed
@rosslovas
rosslovas deleted the ross/new-button-component branch July 29, 2026 05:29
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.

4 participants