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

feat(colors): add hover colors to @carbon/colors #8942

Merged
merged 28 commits into from
Jun 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2bda30d
feat(colors): add initial hover colors
joshblack Jun 17, 2021
ae669ed
refactor(colors): update build task to work with hover colors
joshblack Jun 17, 2021
40b6fb2
styles(colors): added blueHover
sstrubberg Jun 21, 2021
25a90d0
Merge branch 'main' into 8822-add-hover-colors-v2
sstrubberg Jun 21, 2021
950faee
style(colors): added cyan hover
sstrubberg Jun 21, 2021
74fddf3
styles(colors): hover states all updated
sstrubberg Jun 21, 2021
4d3d3f0
style(colors): fixed case senstivity
sstrubberg Jun 21, 2021
597fb71
Merge branch 'main' into 8822-add-hover-colors-v2
sstrubberg Jun 21, 2021
9da94e2
style(color): case-senstivity on warmgray
sstrubberg Jun 21, 2021
fb2a8c4
fix(colors): yarn format
sstrubberg Jun 21, 2021
37e368b
fix(colors): updated unstable_hoverColors
sstrubberg Jun 22, 2021
a63608d
Merge branch 'main' into 8822-add-hover-colors-v2
sstrubberg Jun 22, 2021
191d2c4
fix(colors): hoverColor testing
sstrubberg Jun 22, 2021
5e25782
test(colors): update snapshot
joshblack Jun 23, 2021
6646089
chore(colors): add sideEffects flag and clean-up colors file
joshblack Jun 23, 2021
c06cf82
Merge branch 'main' into 8822-add-hover-colors-v2
joshblack Jun 23, 2021
c2dcc0f
chore(project): update yarn.lock
joshblack Jun 23, 2021
f7e93c4
fix(colors): resotre ywllow and orange colors
joshblack Jun 23, 2021
d7e9284
feat(colors): add white hover and black hover
joshblack Jun 24, 2021
1d4c44f
test(colors): update snapshots
joshblack Jun 24, 2021
a6a692f
docs(colors): update example to include hover color
joshblack Jun 24, 2021
a11e8e3
test(styles): update snapshots
joshblack Jun 24, 2021
de4e84a
fix(colors): update incorrect values
joshblack Jun 24, 2021
88d79c2
test(colors): update snapshots
joshblack Jun 24, 2021
1132e9a
Merge branch 'main' into 8822-add-hover-colors-v2
joshblack Jun 24, 2021
d79cb78
test(styles): update snapshots
joshblack Jun 24, 2021
1bf0d57
Merge branch '8822-add-hover-colors-v2' of github.com:joshblack/carbo…
joshblack Jun 24, 2021
e1a51c5
Merge branch 'main' into 8822-add-hover-colors-v2
kodiakhq[bot] Jun 24, 2021
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
166 changes: 165 additions & 1 deletion packages/colors/__tests__/__snapshots__/colors-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,16 @@ Object {
"90": "#510224",
},
"orange": Object {
"10": "#fff2e8",
"100": "#231000",
"20": "#ffd9be",
"30": "#ffb784",
"40": "#ff832b",
"50": "#eb6200",
"60": "#ba4e00",
"70": "#8a3800",
"80": "#5e2900",
"90": "#3e1a00",
},
"purple": Object {
"10": "#f6f2ff",
Expand Down Expand Up @@ -134,10 +141,167 @@ Object {
"0": "#ffffff",
},
"yellow": Object {
"20": "#fdd13a",
"10": "#fcf4d6",
"100": "#1c1500",
"20": "#fddc69",
"30": "#f1c21b",
"40": "#d2a106",
"50": "#b28600",
"60": "#8e6a00",
"70": "#684e00",
"80": "#483700",
"90": "#302400",
},
}
`;

exports[`unstable_hoverColors 1`] = `
Object {
"blackHover": "#212121",
"blueHover": Object {
"10": "#dbebff",
"100": "#001f75",
"20": "#b8d3ff",
"30": "#8ab6ff",
"40": "#5c97ff",
"50": "#1f70ff",
"60": "#0050e6",
"70": "#0053ff",
"80": "#0039c7",
"90": "#00258a",
},
"coolGrayHover": Object {
"10": "#e4e9f1",
"100": "#222a2f",
"20": "#cdd3da",
"30": "#adb5bd",
"40": "#9199a1",
"50": "#757b85",
"60": "#585e64",
"70": "#5d646a",
"80": "#434a51",
"90": "#2b3236",
},
"cyanHover": Object {
"10": "#cceeff",
"100": "#0b2947",
"20": "#99daff",
"30": "#57beff",
"40": "#059fff",
"50": "#0f7ec8",
"60": "#005fa3",
"70": "#0066bd",
"80": "#00498a",
"90": "#013360",
},
"grayHover": Object {
"10": "#e8e8e8",
"100": "#292929",
"20": "#d1d1d1",
"30": "#b5b5b5",
"40": "#999999",
"50": "#7a7a7a",
"60": "#5e5e5e",
"70": "#636363",
"80": "#474747",
"90": "#333333",
},
"greenHover": Object {
"10": "#b6f6c8",
"100": "#0d300f",
"20": "#74e792",
"30": "#36ce5e",
"40": "#3bab5a",
"50": "#208e3f",
"60": "#166f31",
"70": "#11742f",
"80": "#05521c",
"90": "#033b11",
},
"magentaHover": Object {
"10": "#ffe0ef",
"100": "#53142f",
"20": "#ffbdda",
"30": "#ff94c3",
"40": "#ff57a0",
"50": "#e3176f",
"60": "#b0215f",
"70": "#bf1d63",
"80": "#8e0b43",
"90": "#68032e",
},
"orangeHover": Object {
"10": "#ffe2cc",
"100": "#421e00",
"20": "#ffc69e",
"30": "#ff9d57",
"40": "#fa6800",
"50": "#cc5500",
"60": "#9e4200",
"70": "#a84400",
"80": "#753300",
"90": "#522200",
},
"purpleHover": Object {
"10": "#ede5ff",
"100": "#341c59",
"20": "#dcc7ff",
"30": "#c5a3ff",
"40": "#ae7aff",
"50": "#9352ff",
"60": "#7822fb",
"70": "#7c3dd6",
"80": "#5b24ad",
"90": "#40197b",
},
"redHover": Object {
"10": "#ffe0e0",
"100": "#540d11",
"20": "#ffc2c5",
"30": "#ff99a0",
"40": "#ff6168",
"50": "#ee0713",
"60": "#b81922",
"70": "#c21e25",
"80": "#921118",
"90": "#66050a",
},
"tealHover": Object {
"10": "#acf6f6",
"100": "#0f3034",
"20": "#57e5e5",
"30": "#25cac8",
"40": "#07aba9",
"50": "#008a87",
"60": "#006b68",
"70": "#007070",
"80": "#005357",
"90": "#033940",
},
"warmGrayHover": Object {
"10": "#f0e8e6",
"100": "#2c2626",
"20": "#d8d0cf",
"30": "#b9b3b1",
"40": "#9c9696",
"50": "#7f7b7b",
"60": "#605d5d",
"70": "#696363",
"80": "#4c4848",
"90": "#343232",
},
"whiteHover": "#e8e8e8",
"yellowHover": Object {
"10": "#f8e6a0",
"100": "#332600",
"20": "#fccd27",
"30": "#ddb00e",
"40": "#bc9005",
"50": "#9e7700",
"60": "#755800",
"70": "#806000",
"80": "#5c4600",
"90": "#3d2e00",
},
}
`;
Loading