Skip to content

Commit 9bcd135

Browse files
feat(Button): add support for inverse filled color (#1872)
## 📝 Changes - Add support for `inverse` color on `filled` variant <img width="274" height="121" alt="image" src="https://github.com/user-attachments/assets/73d4c47e-4163-4563-bd87-89328f8f21e3" /> ## ✅ Checklist Easy UI has certain UX standards that must be met. In general, non-trivial changes should meet the following criteria: - [-] Visuals match Design Specs in Figma (within our current color system) - [x] Stories accompany any component changes - [x] Code is in accordance with our style guide - [x] Design tokens are utilized - [x] Unit tests accompany any component changes - [x] TSDoc is written for any API surface area - [x] Specs are up-to-date - [x] Console is free from warnings - [x] No accessibility violations are reported - [x] Cross-browser check is performed (Chrome, Safari, Firefox) - [x] Changeset is added ~Strikethrough~ any items that are not applicable to this pull request.
1 parent d5b0ed8 commit 9bcd135

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

.changeset/four-guests-return.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@easypost/easy-ui": minor
3+
---
4+
5+
feat(Button): add support for inverse filled color

easy-ui-react/src/Button/_mixins.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@
187187

188188
// prettier-ignore
189189
@mixin colorInverse {
190+
@include component-token("button", "filled.font.color", design-token("color.primary.800"));
191+
@include component-token("button", "filled.active.font.color", design-token("color.primary.800"));
190192
@include component-token("button", "resting.color", design-token("color.neutral.000"));
191193
@include component-token("button", "hover.focus.color", design-token("color.neutral.100"));
192194
@include component-token("button", "active.color", design-token("color.neutral.200"));

easy-ui-react/src/Button/utilities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const FILLED_BUTTON_COLORS = [
88
"success",
99
"warning",
1010
"neutral",
11+
"inverse",
1112
];
1213

1314
export const OUTLINED_BUTTON_COLORS = [

easy-ui-react/src/utilities/storybook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function getFilledButtonsColorMapping() {
6969
table: {
7070
type: {
7171
summary:
72-
'"primary" | "secondary" | "success" | "warning" | "neutral"',
72+
'"primary" | "secondary" | "success" | "warning" | "neutral" | "inverse"',
7373
},
7474
defaultValue: { summary: "primary" },
7575
},

0 commit comments

Comments
 (0)