@bbc/psammead-styles
Advanced tools
Comparing version 4.4.2 to 4.4.3
@@ -6,2 +6,3 @@ # @bbc/psammead-styles Changelog | ||
|---------|-------------| | ||
| 4.4.3 | [PR#3707](https://github.com/bbc/psammead/pull/3707) fix propType errors | | ||
| 4.4.2 | [PR#3660](https://github.com/bbc/psammead/pull/3660) Update C_LUNAR_LIGHT | | ||
@@ -8,0 +9,0 @@ | 4.4.1 | [PR#3590](https://github.com/bbc/psammead/pull/3590) Add C_MIDNIGHT_BLACK | |
{ | ||
"name": "@bbc/psammead-styles", | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"description": "A collection of string constants for use in CSS, containing non-GEL styling details that are bespoke to specific BBC services and products.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -23,3 +23,3 @@ import React from 'react'; | ||
const typographyStory = typographyFunc => ({ text, script }) => ( | ||
const typographyStory = (typographyFunc, text, script) => ( | ||
<TypographyText script={script} typographyFunc={typographyFunc}> | ||
@@ -39,5 +39,6 @@ {text} | ||
typographyName.replace(/^get/, ''), | ||
typographyStory(typographies[typographyName]), | ||
({ text, script }) => | ||
typographyStory(typographies[typographyName], text, script), | ||
{ notes, knobs: { escapeHTML: false } }, | ||
); | ||
}); |
276870
2651