Skip to content

Commit

Permalink
feat: migration of tokens to spectrum 2
Browse files Browse the repository at this point in the history
Expanding the existing themes system to support the new S2 mappings.

---
Co-authored-by: castastrophe <[email protected]>
Co-authored-by: Patrick Fulton <[email protected]>
Co-authored-by: Cory Dransfeldt <[email protected]>
Co-authored-by: Aziz Ramos <[email protected]>
Co-authored-by: Josh Winn <[email protected]>
Co-authored-by: Rise Erpelding <[email protected]>
Co-authored-by: Marissa Huysentruyt <[email protected]>
Co-authored-by: Rajdeep Chandra <[email protected]>
Co-authored-by: TarunAdobe <[email protected]>
  • Loading branch information
castastrophe committed Nov 22, 2024
1 parent 7e50770 commit 2e4db3f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions components/calendar/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@import "./themes/express.css";


@media (forced-colors: active) {
.spectrum-Calendar-prevMonth,
.spectrum-Calendar-nextMonth {
Expand Down Expand Up @@ -144,7 +143,7 @@

.spectrum-Calendar-prevMonth,
.spectrum-Calendar-nextMonth {
transform: var(--spectrum-logical-rotation);
transform: var(--spectrum-logical-rotation,);

&:not([disabled]) {
color: var(--spectrum-calendar-button-icon-color);
Expand Down
4 changes: 2 additions & 2 deletions components/calendar/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export const Template = ({
isQuiet: true,
isDisabled,
size: buttonSize,
iconName: "ChevronLeft100",
iconName: "ChevronLeft",
iconSet: "ui",
customClasses: [`${rootClass}-prevMonth`],
onclick: previousHandler.bind(null, {
Expand All @@ -300,7 +300,7 @@ export const Template = ({
isQuiet: true,
isDisabled,
size: buttonSize,
iconName: "ChevronRight100",
iconName: "ChevronRight",
iconSet: "ui",
customClasses: [`${rootClass}-nextMonth`],
onclick: nextHandler.bind(null, {
Expand Down
2 changes: 1 addition & 1 deletion components/dialog/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Template = ({
footer = [],
customClasses = [],
id = getRandomId("dialog"),
size = "medium",
size = "m",
layout,
heroImageUrl,
customStyles = {},
Expand Down
2 changes: 1 addition & 1 deletion components/meter/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Template = ({
customClasses: [
...customClasses,
rootClass,
typeof size !== "undefined" ? `${rootClass}--size${size.toUpperCase()}` : null,
typeof size !== "undefined" ? `${rootClass}--size${size?.toUpperCase()}` : null,
typeof fill !== "undefined" ? `is-${fill}` : null,
/*
* The `spectrum-Meter--staticWhite` class is not present in the Meter CSS, as it makes use of
Expand Down
2 changes: 1 addition & 1 deletion components/popover/stories/popover.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ DialogStyle.args = {
content: [
(passthroughs, context) => Dialog({
showModal: false,
size: ["small"],
size: "s",
isDismissable: false,
heading: "Example heading",
hasFooter: false,
Expand Down
2 changes: 1 addition & 1 deletion components/popover/stories/popover.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const PopoverGroup = Variants({
content: [
(passthroughs, context) => Dialog({
showModal: false,
size: ["small"],
size: "s",
isDismissable: false,
heading: "Example heading",
hasFooter: false,
Expand Down

0 comments on commit 2e4db3f

Please sign in to comment.