Skip to content

Commit

Permalink
Merge pull request #136 from vpicone/scroll-italic-fix
Browse files Browse the repository at this point in the history
fix: italic plex and scrolling page tabs
  • Loading branch information
vpicone authored Jun 3, 2019
2 parents 052f8c5 + 003f043 commit cba31f4
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

1 comment on commit cba31f4

@vercel
Copy link

@vercel vercel bot commented on cba31f4 Jun 3, 2019

Choose a reason for hiding this comment

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

Please sign in to comment.