Skip to content

Commit

Permalink
fix: italic plex and scrolling page tabs
Browse files Browse the repository at this point in the history
Devs need to specify italic variants if they're needed. Documentation
added. closes carbon-design-system#135, closes carbon-design-system#134
  • Loading branch information
vpicone committed Jun 3, 2019
1 parent 052f8c5 commit b3f67cc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ siteMetadata: {

### Additional font weights

If needed, you can add support for additional Plex font weights
If needed, you can add support for additional Plex font weights. Don't forget to specify italics for the additional weights if needed.

```js
__experimentalThemes: [
{
resolve: 'gatsby-theme-carbon',
options: {
// will get added to default [300, 400, 600]
additionalFontWeights: [200]
additionalFontWeights: ['200', '200i]
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/example/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
{
resolve: 'gatsby-theme-carbon',
options: {
additionalFontWeights: [200],
additionalFontWeights: ['200', '200i'],
},
},
],
Expand Down
10 changes: 9 additions & 1 deletion packages/gatsby-theme-carbon/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ module.exports = themeOptions => {
fonts: [
{
family: `IBM Plex Sans`,
variants: [300, 400, 600, ...additionalFontWeights],
variants: [
300,
'300i',
400,
'400i',
600,
'600i',
...additionalFontWeights,
],
},
{
family: `IBM Plex Mono`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
width: 100%;
list-style: none;
padding: 0;
overflow-x: scroll;
scrollbar-width: none;
}

.list-item {
Expand Down

0 comments on commit b3f67cc

Please sign in to comment.