Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(colors)!: remove old colors and convert to input and show figma token #1711

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

jinlee93
Copy link
Contributor

@jinlee93 jinlee93 commented Jul 26, 2023

EDS-1063

Summary:

mocks
impetus:

  • we will soon be pointing ZH colors to the Storybook page as it stays up to date more automatically than Figma styles
    execution:
  • remove t1 deprecated and legacy colors
    • these are no longer in the mocks
  • reordered color list to match mocks order
  • updated storybook component ColorList:
    • show figma token in the colors page so designers can quick glance it
    • convert the large color swatch to <input> so it can be interact-able with browser functionality
      upcoming:
  • t2 and t3 to use ColorList component to show the figma token and the tailwind class

Test Plan:

  • Manually tested my changes, and here are the details:
    • looks similar enough to current storybook t1 colors page
    • shows the figma token
    • color swatch is interact-able

image

@jinlee93 jinlee93 requested a review from a team July 26, 2023 00:54
Comment on lines +17 to +26
.color-list__input::-webkit-color-swatch {
border-color: transparent;
}
.color-list__input::-webkit-color-swatch-wrapper {
padding: 0;
}

.color-list__input::-moz-color-swatch {
border-color: transparent;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This removes some shadow dom browser bordering
image
Not averse to keeping the border which could indicate color selection functionality but I think the border itself could be confusing.
Also using psuedo element selectors here is fine since docs only

value: any;
value: string;
figmaToken?: string;
tailwindClass?: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

prepping to show t2 and t3 color tailwind utility classes

@@ -1,5 +1,3 @@
@import '../../../src/design-tokens/mixins.css';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unrelated but unneeded

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This page edit was also unnecessary but came across it while thinking about the t1 colors page so just converted it to react FC

@github-actions
Copy link

size-limit report 📦

Path Size
components 102.76 KB (0%)
styles 35.53 KB (-0.37% 🔽)

@jinlee93 jinlee93 added the next-major PRs to hold until the next major version (should include codemod) label Jul 26, 2023
Copy link
Contributor

@booc0mtaco booc0mtaco left a comment

Choose a reason for hiding this comment

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

🥳

What's an example of a "figma token" in this context?

@@ -75,62 +75,6 @@
"700": { "value": "#BD0044" },
"800": { "value": "#8F0134" }
}
},
"highlight": {
Copy link
Contributor

Choose a reason for hiding this comment

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

++

);
}
}
export const ColorList = (props: Props) => (
Copy link
Contributor

Choose a reason for hiding this comment

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

++

@jinlee93
Copy link
Contributor Author

🥳

What's an example of a "figma token" in this context?

It's how it shows up in Figma
image
Any suggestions on what it's actually called?

@booc0mtaco
Copy link
Contributor

@jinlee93 ah I see. My dream would be that what is in figma is a strict subset or exact match to what's in code, so there's no need to show each. If that's not possible, i think this figma token or figma reference is suitable.

@jinlee93 jinlee93 merged commit c9a5079 into next Jul 26, 2023
@jinlee93 jinlee93 deleted the jlee/cleanUpT1Colors branch July 26, 2023 16:31
@booc0mtaco booc0mtaco mentioned this pull request Aug 14, 2023
booc0mtaco added a commit that referenced this pull request Aug 15, 2023
## [13.0.0](v12.4.2...v13.0.0) (2023-08-14)


### ⚠ BREAKING CHANGES

* **link:** remove text-link tokens for link t3 tokens (#1639)
* **colors:** remove old colors and convert to input and show figma token (#1711)
* remove deprecated dropdown (#1657)
* **banner:** remove component (#1702)
* remove legacy tokens and typography mixins (#1709)
* **Grid:** remove top-level sub-component(s) (#1703)
* **dragdrop:** remove top level subcomponents (#1697)
* **Fieldset:** remove top-level sub-component(s) (#1695)
* **HorizontalStepper:** remove top-level sub-component(s) (#1696)
* **Card:** remove top-level sub-component(s) (#1692)
* **checkbox:** remove top level subcomponents (#1693)
* **radio:** remove top level subcomponents (#1690)
* **DataBar:** remove top-level sub-component(s) (#1686)
* **Modal:** remove top-level sub-component(s) (#1689)
* **searchbar:** remove top level subcomponents (#1687)
* **table:** remove top-level sub-components (#1685)
* **toolbar:** remove component (#1683)
* **Breadcrumbs:** remove top-level sub-component (#1680)
* **timelinenav:** remove top-level sub-component (#1681)

### Features

* **Breadcrumbs:** remove top-level sub-component ([#1680](#1680)) ([669081d](669081d))
* **Card:** remove top-level sub-component(s) ([#1692](#1692)) ([7ec01f4](7ec01f4))
* **checkbox:** remove top level subcomponents ([#1693](#1693)) ([87b12e8](87b12e8))
* **DataBar:** remove top-level sub-component(s) ([#1686](#1686)) ([b4b9276](b4b9276))
* **dragdrop:** remove top level subcomponents ([#1697](#1697)) ([b4fd00c](b4fd00c))
* **Fieldset:** remove top-level sub-component(s) ([#1695](#1695)) ([0c8280d](0c8280d))
* **Grid:** remove top-level sub-component(s) ([#1703](#1703)) ([c8925c9](c8925c9))
* **HorizontalStepper:** remove top-level sub-component(s) ([#1696](#1696)) ([188fd99](188fd99))
* **Layout:** mark layout components as deprecated ([#1700](#1700)) ([930a369](930a369))
* **Modal:** remove top-level sub-component(s) ([#1689](#1689)) ([8743e62](8743e62))
* **radio:** remove top level subcomponents ([#1690](#1690)) ([82da617](82da617))
* remove legacy tokens and typography mixins ([#1709](#1709)) ([ec3e819](ec3e819))
* **searchbar:** remove top level subcomponents ([#1687](#1687)) ([d13bb6c](d13bb6c))
* **table:** remove top-level sub-components ([#1685](#1685)) ([742a530](742a530))
* **timelinenav:** remove top-level sub-component ([#1681](#1681)) ([f46eca7](f46eca7))


### Bug Fixes

* **Avatar:** support display names using emoji and multi-byte ([#1716](#1716)) ([1294022](1294022))
* update token exports ([#1722](#1722)) ([982c55f](982c55f))


* **banner:** remove component ([#1702](#1702)) ([356550c](356550c))
* **colors:** remove old colors and convert to input and show figma token ([#1711](#1711)) ([c9a5079](c9a5079))
* **link:** remove text-link tokens for link t3 tokens ([#1639](#1639)) ([d35cfe4](d35cfe4))
* remove deprecated dropdown ([#1657](#1657)) ([26d1694](26d1694))
* **toolbar:** remove component ([#1683](#1683)) ([bd47899](bd47899))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-major PRs to hold until the next major version (should include codemod)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants