Skip to content
Permalink
Browse files

fix: remap console semibold to medium font weight (#195)

* fix: remap console semibold to medium font weight

* test: snapshot updates

* test: update missing snapshot
  • Loading branch information
SiTaggart committed Nov 20, 2019
1 parent 15ccbc2 commit c01f6b30cb0d9d9f24b1a8556b07bee8060f9052
@@ -50,7 +50,7 @@ exports[`Button States Has a disabled state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: not-allowed;
border-width: 2px;
border-style: solid;
@@ -85,7 +85,7 @@ exports[`Button States Has a disabled state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: not-allowed;
border-width: 2px;
border-style: solid;
@@ -115,7 +115,7 @@ exports[`Button States Has a disabled state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: not-allowed;
border-width: 2px;
border-style: solid;
@@ -144,7 +144,7 @@ exports[`Button States Has a disabled state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: not-allowed;
background: none;
color: #ecb6b6;
@@ -169,7 +169,7 @@ exports[`Button States Has a disabled state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: not-allowed;
background: none;
color: #b3d3e9;
@@ -194,7 +194,7 @@ exports[`Button States Has a disabled state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: not-allowed;
width: auto;
}
@@ -332,7 +332,7 @@ exports[`Button States Has a loading state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: wait;
border-width: 2px;
border-style: solid;
@@ -432,7 +432,7 @@ exports[`Button States Has a loading state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: wait;
border-width: 2px;
border-style: solid;
@@ -463,7 +463,7 @@ exports[`Button States Has a loading state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: wait;
border-width: 2px;
border-style: solid;
@@ -492,7 +492,7 @@ exports[`Button States Has a loading state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: wait;
background: none;
color: #921200;
@@ -517,7 +517,7 @@ exports[`Button States Has a loading state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: wait;
background: none;
color: #032c5e;
@@ -542,7 +542,7 @@ exports[`Button States Has a loading state 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
cursor: wait;
width: auto;
}
@@ -883,7 +883,7 @@ exports[`Button Variants Has a destructive variant 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
-webkit-text-decoration: none;
text-decoration: none;
cursor: pointer;
@@ -987,7 +987,7 @@ exports[`Button Variants Has a destructive_link variant 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
-webkit-text-decoration: none;
text-decoration: none;
cursor: pointer;
@@ -1088,7 +1088,7 @@ exports[`Button Variants Has a link variant 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
-webkit-text-decoration: none;
text-decoration: none;
cursor: pointer;
@@ -1172,7 +1172,7 @@ exports[`Button Variants Has a primary variant 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
-webkit-text-decoration: none;
text-decoration: none;
cursor: pointer;
@@ -1295,7 +1295,7 @@ exports[`Button Variants Has a reset variant 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
-webkit-text-decoration: none;
text-decoration: none;
cursor: pointer;
@@ -1381,7 +1381,7 @@ exports[`Button Variants Has a secondary variant 1`] = `
-webkit-transition: background-color 100ms ease-in,border-color 100ms ease-in;
transition: background-color 100ms ease-in,border-color 100ms ease-in;
font-family: 'Whitney SSm A','Whitney SSm B','Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 600;
font-weight: 500;
-webkit-text-decoration: none;
text-decoration: none;
cursor: pointer;
@@ -22,7 +22,7 @@ exports[`Heading it should render an H1 at fontSize90 1`] = `
color: #282a2b;
margin-bottom: 1.5rem;
font-size: 2rem;
font-weight: 600;
font-weight: 500;
line-height: 2.5rem;
}

@@ -62,7 +62,7 @@ exports[`Heading it should render an H2 at fontSize70 1`] = `
color: #282a2b;
margin-bottom: 1.25rem;
font-size: 1.5rem;
font-weight: 600;
font-weight: 500;
line-height: 2rem;
}

@@ -102,7 +102,7 @@ exports[`Heading it should render an H3 at fontSize60 1`] = `
color: #282a2b;
margin-bottom: 1rem;
font-size: 1.25rem;
font-weight: 600;
font-weight: 500;
line-height: 1.75rem;
}

@@ -142,7 +142,7 @@ exports[`Heading it should render an H4 at fontSize40 1`] = `
color: #282a2b;
margin-bottom: 0.75rem;
font-size: 1rem;
font-weight: 600;
font-weight: 500;
line-height: 1.75rem;
}

@@ -182,7 +182,7 @@ exports[`Heading it should render an H5 at fontSize30 1`] = `
color: #282a2b;
margin-bottom: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
font-weight: 500;
line-height: 1.5rem;
}

@@ -222,7 +222,7 @@ exports[`Heading it should render an H6 at fontSize20 1`] = `
color: #282a2b;
margin-bottom: 0.5rem;
font-size: 0.75rem;
font-weight: 600;
font-weight: 500;
line-height: 1.25rem;
}

@@ -262,7 +262,7 @@ exports[`Heading it should render an italic H2 at fontSize50 1`] = `
color: #282a2b;
margin-bottom: 1.25rem;
font-size: 1.5rem;
font-weight: 600;
font-weight: 500;
line-height: 2rem;
}

@@ -60,4 +60,4 @@
"rollup-plugin-typescript2": "^0.21.2",
"typescript": "^3.5.2"
}
}
}
@@ -434,7 +434,7 @@ exports[`fontWeight should set a responsive font weight property 1`] = `

@media screen and (min-width:25rem) {
.emotion-0 {
font-weight: 600;
font-weight: 500;
}
}

@@ -14,7 +14,7 @@ props:
value: "{!font-weight-medium}"
comment: Font weight for medium weight
font-weight-semibold:
value: "{!font-weight-semibold}"
value: "{!font-weight-medium}"
comment: Font weight for semibold weight
font-weight-bold:
value: "{!font-weight-bold}"
@@ -4,3 +4,7 @@ global:
imports:
- ../../../global/font-weight.yml
- ../aliases/font-weight.yml
props:
font-weight-semibold:
value: "{!font-weight-semibold}"
comment: Font weight for semibold weight

1 comment on commit c01f6b3

@now

This comment has been minimized.

Please sign in to comment.
You can’t perform that action at this time.