From d7217513c9fca9354d053a5a3e3e8102c50b5b8a Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 27 Feb 2019 11:42:10 +0100 Subject: [PATCH] Merge branch 'spacy.io' into develop [ci skip] --- website/meta/site.json | 2 +- website/src/components/typography.js | 8 ++++++-- website/src/styles/button.module.sass | 1 + website/src/styles/grid.module.sass | 4 +++- website/src/styles/typography.module.sass | 8 ++++++++ 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/website/meta/site.json b/website/meta/site.json index 2b65e1d84..4defdf913 100644 --- a/website/meta/site.json +++ b/website/meta/site.json @@ -29,7 +29,7 @@ "spacyVersion": "2.1", "binderUrl": "ines/spacy-io-binder", "binderBranch": "nightly", - "binderVersion": "2.1.0a8", + "binderVersion": "2.1.0a9", "sections": [ { "id": "usage", "title": "Usage Documentation", "theme": "blue" }, { "id": "models", "title": "Models Documentation", "theme": "blue" }, diff --git a/website/src/components/typography.js b/website/src/components/typography.js index 721521939..e23339758 100644 --- a/website/src/components/typography.js +++ b/website/src/components/typography.js @@ -94,9 +94,13 @@ const Headline = ({ }) => { // This can be set via hidden="true" and as a prop, so we need to accept both if (hidden === true || hidden === 'true') return null + const hasAction = !!source || !!action + const headingClassNames = classNames(classes.heading, className, { + [classes.clear]: hasAction, + }) const tags = tag ? tag.split(',').map(t => t.trim()) : [] return ( - + {children} {tags.map((tag, i) => ( @@ -114,7 +118,7 @@ const Headline = ({ )} - {(source || action) && ( + {hasAction && (
{source && (