diff --git a/.storybook/preview.scss b/.storybook/preview.scss index d5d56b7a..d15fb4d1 100644 --- a/.storybook/preview.scss +++ b/.storybook/preview.scss @@ -61,8 +61,9 @@ div.sbdocs-content { a { @include font-display; - color: var(--gfx-colour-tr-muted-blue); + color: #0071a1; text-decoration: none; + text-underline-offset: 2px; &:hover { text-decoration: underline; } diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 869a9e5b..34a35c37 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -67,6 +67,7 @@ export const parameters = { ], 'Borders', 'Colours', [ + 'Intro', 'Primary', 'Thematic', '*', diff --git a/src/components/BeforeAfter/BeforeAfter.svelte b/src/components/BeforeAfter/BeforeAfter.svelte index 472c7f21..64ca670c 100644 --- a/src/components/BeforeAfter/BeforeAfter.svelte +++ b/src/components/BeforeAfter/BeforeAfter.svelte @@ -153,7 +153,7 @@ /> {#if beforeSrc && beforeAlt && afterSrc && afterAlt} - +
Article
- narrower - narrow - normal - widewide - wider - narrower - narrow normal.skip-narrownormal.skip-narrow wide.skip-normal.skip-narrow wider.skip-widewider.skip-wide
diff --git a/src/components/Block/Block.svelte b/src/components/Block/Block.svelte index dcd0652d..bf6a8cdd 100644 --- a/src/components/Block/Block.svelte +++ b/src/components/Block/Block.svelte @@ -8,7 +8,8 @@ /** Add an id to the block tag to target it with custom CSS. */ export let id: string = ''; /** Add extra classes to the block tag to target it with custom CSS. */ - export let cls: string = ''; + let cls: string = ''; + export { cls as class }; /** Snap block to column widths, rather than fluidly resizing them. */ export let snap: boolean = false; diff --git a/src/components/Block/stories/docs/snapWidths.md b/src/components/Block/stories/docs/snapWidths.md index bd7f4a64..6dd16156 100644 --- a/src/components/Block/stories/docs/snapWidths.md +++ b/src/components/Block/stories/docs/snapWidths.md @@ -12,7 +12,7 @@ If you want to skip certain block widths entirely, you can add one or more class ```html - + ``` @@ -28,7 +28,7 @@ Snap width breakpoints are hard-coded to the default article well column widths, Luckily, it's still pretty easy. Just add a `cls` or `id` to your `Block` so you can target it with some custom SCSS. Now, defined a few SCSS variables corresponding to your custom column widths and use the `block-snap-widths` SCSS mixin to get the same functionality at your custom breakpoints. ```html - + diff --git a/src/components/BodyText/BodyText.svelte b/src/components/BodyText/BodyText.svelte index 63280fc9..20293b20 100644 --- a/src/components/BodyText/BodyText.svelte +++ b/src/components/BodyText/BodyText.svelte @@ -7,11 +7,15 @@ */ export let text: string; + /** Add a class to target with SCSS. */ + let cls: string = ''; + export { cls as class }; + import { marked } from 'marked'; import Block from '../Block/Block.svelte'; - + {#if text} {@html marked.parse(text)} {/if} diff --git a/src/components/DocumentCloud/DocumentCloud.svelte b/src/components/DocumentCloud/DocumentCloud.svelte index 55d3a2c9..89ad0e94 100644 --- a/src/components/DocumentCloud/DocumentCloud.svelte +++ b/src/components/DocumentCloud/DocumentCloud.svelte @@ -24,12 +24,13 @@ export let id: string = ''; /** Add a class to target with SCSS. */ - export let cls: string = ''; + let cls: string = ''; + export { cls as class }; import Block from '../Block/Block.svelte'; - +