diff --git a/src/headline/Headline.jsx b/src/headline/Headline.jsx index 626fbe9..a01960c 100644 --- a/src/headline/Headline.jsx +++ b/src/headline/Headline.jsx @@ -22,6 +22,7 @@ export default class Headline extends React.PureComponent { text: PropTypes.string, type: PropTypes.string, mode: PropTypes.string, + style: PropTypes.object, "data-e2e": PropTypes.string }; } @@ -33,13 +34,14 @@ export default class Headline extends React.PureComponent { text: null, mode: null, type: 'h1', + style: null, "data-e2e": null }; } render() { let headline = null; - let { Type, id, mode, text, className, children } = this.props; + let { type: Type, id, mode, text, className, children, style } = this.props; let helper = this.context.$Utils.$UIComponentHelper; let computedClassName = helper.cssClasses({ ['atm-headline']: true, @@ -51,6 +53,7 @@ export default class Headline extends React.PureComponent { headline = ( { children } @@ -60,6 +63,7 @@ export default class Headline extends React.PureComponent { headline = ( diff --git a/src/link/Link.jsx b/src/link/Link.jsx index 537bedd..da3e5b4 100644 --- a/src/link/Link.jsx +++ b/src/link/Link.jsx @@ -24,6 +24,7 @@ export default class Link extends React.PureComponent { target: PropTypes.string, onClick: PropTypes.func, mode: PropTypes.string, + style: PropTypes.object, className: PropTypes.string, "data-e2e": PropTypes.string }; @@ -33,6 +34,7 @@ export default class Link extends React.PureComponent { return { text: null, mode: '', + style: null, className: '', "data-e2e": null }; @@ -40,13 +42,14 @@ export default class Link extends React.PureComponent { render() { let helper = this.context.$Utils.$UIComponentHelper; - let { href, title, target, mode, className, onClick, children, text } = this.props; + let { href, title, target, mode, className, onClick, children, text, style } = this.props; return ( {children} @@ -54,6 +57,7 @@ export default class ListItem extends React.PureComponent { } else { listItem = (
  • diff --git a/src/paragraph/Paragraph.jsx b/src/paragraph/Paragraph.jsx index ec6b561..b03352a 100644 --- a/src/paragraph/Paragraph.jsx +++ b/src/paragraph/Paragraph.jsx @@ -21,6 +21,7 @@ export default class Paragraph extends React.PureComponent { className: PropTypes.string, text: PropTypes.string, mode: PropTypes.string, + style: PropTypes.object, "data-e2e": PropTypes.string }; } @@ -30,13 +31,14 @@ export default class Paragraph extends React.PureComponent { className: '', text: null, mode: '', + style: null, "data-e2e": null }; } render() { let helper = this.context.$Utils.$UIComponentHelper; - let { mode, align, className, children, text } = this.props; + let { mode, align, className, children, text, style } = this.props; let paragraph = null; let componentClassName = helper.cssClasses({ 'atm-paragraph': true, @@ -47,6 +49,7 @@ export default class Paragraph extends React.PureComponent { if (children) { paragraph = (

    { children } @@ -55,6 +58,7 @@ export default class Paragraph extends React.PureComponent { } else { paragraph = (