Skip to content
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
81048cb
Merge branch 'develop' into spark-55/shine-update-button-base-styles
ttaylor-stack Oct 15, 2025
643ba84
update default and xs
ttaylor-stack Oct 15, 2025
775b57e
Update button.less
ttaylor-stack Oct 17, 2025
1c40dc1
Update based on changes
ttaylor-stack Oct 28, 2025
cf1c920
Merge branch 'spark-55/shine-update-button-base-styles' of https://gi…
ttaylor-stack Oct 28, 2025
7f2cde6
fix duplicate
ttaylor-stack Oct 28, 2025
f2bafc7
Merge branch 'beta' into spark-55/shine-update-button-base-styles
ttaylor-stack Oct 28, 2025
03be402
Merge branch 'beta' into spark-55/shine-update-button-base-styles
ttaylor-stack Nov 7, 2025
7836b23
Update button.less
ttaylor-stack Nov 10, 2025
4aa9ee4
update docs
ttaylor-stack Nov 10, 2025
908c113
update button svelte files
ttaylor-stack Nov 10, 2025
553be5f
add changeset
ttaylor-stack Nov 10, 2025
5bacf2a
update dependent svelte files
ttaylor-stack Nov 10, 2025
3864d59
update to theme secondary
ttaylor-stack Nov 10, 2025
ecda33e
Update accessibility tests
ttaylor-stack Nov 11, 2025
0cff80e
remove contextual styles
ttaylor-stack Nov 11, 2025
c43816f
reintroduce contextual styles
ttaylor-stack Nov 11, 2025
dfd0139
Merge branch 'beta' into spark-55/shine-update-button-base-styles
ttaylor-stack Nov 14, 2025
16d5cde
Update based on figma update and pr comments
ttaylor-stack Nov 14, 2025
965c54c
Update badge background color for danger clear variant
ttaylor-stack Nov 14, 2025
9db5f52
add breaking changes
ttaylor-stack Nov 14, 2025
69ec77a
Update docs
ttaylor-stack Nov 14, 2025
a9b255e
correct gradients
ttaylor-stack Nov 14, 2025
850fdf3
use color instead of opacity
ttaylor-stack Nov 14, 2025
e0719f3
Update based on comments
ttaylor-stack Nov 17, 2025
6cce94a
Merge branch 'beta' into spark-55/shine-update-button-base-styles
ttaylor-stack Nov 17, 2025
4fe49e2
Button styles refactor (#2052)
dancormier Nov 18, 2025
bcb6f21
update svelte component
ttaylor-stack Nov 19, 2025
bb0d4db
Merge branch 'beta' into spark-55/shine-update-button-base-styles
ttaylor-stack Nov 19, 2025
b7c8122
Update migration guide
ttaylor-stack Nov 19, 2025
af6aacb
fix lint issue
ttaylor-stack Nov 21, 2025
3ecdc69
Merge branch 'beta' into spark-55/shine-update-button-base-styles
ttaylor-stack Nov 21, 2025
991e62e
Fix button prop in Menu story
dancormier Nov 21, 2025
4a428f2
update visual tests
ttaylor-stack Nov 21, 2025
2ab5354
updsate visual tests
ttaylor-stack Nov 21, 2025
57b422d
update visual regression tests
ttaylor-stack Nov 21, 2025
f8d8bbc
Merge branch 'beta' into spark-55/shine-update-button-base-styles
dancormier Nov 21, 2025
290432f
Update visual regression images
dancormier Nov 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/beige-bats-like.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@stackoverflow/stacks": minor
"@stackoverflow/stacks-svelte": minor
---

Update button to new Shine styles

BREAKING CHANGES:

- The secondary style `outlined` has been removed i.e. `.s-btn__outlined`
- The variant `Muted` has been removed
- `s-btn__md` has been removed
7 changes: 7 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
- The Award Bling component has been renamed to Bling.
- Bling no longer accepts children elements besides those for screen readers. Please include any visually represented strings (such as counts) as siblings to the bling component.

#### Buttons
- The secondary style `outlined` has been removed i.e. `.s-btn__outlined`
- The default button style is `filled`, use `.s-btn__clear` to use a clear style of a button
- The featured and tonal variant no longer have a clear style
- The variant `Muted` has been removed, `Tonal` has been added
- `s-btn__md` has been removed, `s-btn__lg` has been added

#### Menu

The menu component has been updated to use new class names and structure. The following changes are breaking:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const getBtn = ({
isSelected?: boolean;
hasBadge?: boolean;
}): string => {
const baseClasses = "s-btn s-btn__muted";
const baseClasses = "s-btn s-btn__tonal";
const btnChildren = `
<span class="s-btn--text" data-text="${name}">${name}</span>
${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ describe("button", () => {
/s-btn-(light|dark).*?badge/,
// matches tests with a badge in highcontrast-light modes, excluding filled, danger, github, facebook, sm, or xs
/s-btn-highcontrast-light-(?!.*(filled|danger|github|facebook|sm|xs)).*?badge/,
// matches tests with a badge in highcontrast-light modes, are muted or featured and/or outlined, and are sm or xs
/s-btn-highcontrast-light-(?:muted-|featured-)?(?:outlined-)?(?:sm|xs).*?badge/,
// matches tests with a badge in highcontrast-light modes, are tonal or featured, and are sm or xs
/s-btn-highcontrast-light-(?:tonal-|featured-)?(?:sm|xs).*?badge/,
],
});
});
Loading
Loading