diff --git a/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap b/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap index a415d0020b7..b338c32aaae 100644 --- a/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap +++ b/packages/dnb-eufemia/src/components/global-error/__tests__/__snapshots__/GlobalError.test.js.snap @@ -1208,7 +1208,6 @@ exports[`GlobalError snapshot have to match component snapshot 1`] = ` modifier={null} size={null} small={null} - style_type={null} >

+const Ingress = (p) =>

Ingress.tagName = 'dnb-p--ingress' export default Ingress diff --git a/packages/dnb-eufemia/src/elements/Lead.js b/packages/dnb-eufemia/src/elements/Lead.js index 12defed65ff..d78eb3436c3 100644 --- a/packages/dnb-eufemia/src/elements/Lead.js +++ b/packages/dnb-eufemia/src/elements/Lead.js @@ -6,6 +6,6 @@ import React from 'react' import P from './P' -const Lead = (p) =>

+const Lead = (p) =>

Lead.tagName = 'dnb-p--lead' export default Lead diff --git a/packages/dnb-eufemia/src/elements/P.d.ts b/packages/dnb-eufemia/src/elements/P.d.ts index 14895ac48c6..0b9f068779d 100644 --- a/packages/dnb-eufemia/src/elements/P.d.ts +++ b/packages/dnb-eufemia/src/elements/P.d.ts @@ -38,7 +38,6 @@ export interface PProps medium?: boolean; bold?: boolean; size?: PSize; - style_type?: string; modifier?: string; children?: React.ReactNode; } diff --git a/packages/dnb-eufemia/src/elements/P.js b/packages/dnb-eufemia/src/elements/P.js index b555c93a8df..1aed45d668b 100644 --- a/packages/dnb-eufemia/src/elements/P.js +++ b/packages/dnb-eufemia/src/elements/P.js @@ -10,7 +10,6 @@ import { spacingPropTypes } from '../components/space/SpacingHelper' import E from './Element' const P = ({ - style_type, modifier, element, className, @@ -27,10 +26,6 @@ const P = ({ modifier = [modifier] } - if (style_type) { - modifier.push(style_type) // deprecated - } - if (medium === true) { modifier.push('medium') } else if (bold === true) { @@ -76,7 +71,6 @@ P.propTypes = { 'x-large', 'xx-large', ]), - style_type: PropTypes.string, // deprecated modifier: PropTypes.string, children: PropTypes.node, } @@ -87,7 +81,6 @@ P.defaultProps = { medium: null, bold: null, size: null, - style_type: null, // deprecated modifier: null, children: null, } diff --git a/packages/dnb-eufemia/src/elements/__tests__/__snapshots__/P.test.js.snap b/packages/dnb-eufemia/src/elements/__tests__/__snapshots__/P.test.js.snap index 137342548bc..83636674bcc 100644 --- a/packages/dnb-eufemia/src/elements/__tests__/__snapshots__/P.test.js.snap +++ b/packages/dnb-eufemia/src/elements/__tests__/__snapshots__/P.test.js.snap @@ -9,19 +9,18 @@ exports[`P element have to match default P element snapshot 1`] = ` modifier="modifier" size="x-small" small={true} - style_type="style_type" >

children

diff --git a/packages/dnb-eufemia/src/extensions/payment-card/__tests__/__snapshots__/PaymentCard.test.js.snap b/packages/dnb-eufemia/src/extensions/payment-card/__tests__/__snapshots__/PaymentCard.test.js.snap index b37ec7e4ac9..6de9746deda 100644 --- a/packages/dnb-eufemia/src/extensions/payment-card/__tests__/__snapshots__/PaymentCard.test.js.snap +++ b/packages/dnb-eufemia/src/extensions/payment-card/__tests__/__snapshots__/PaymentCard.test.js.snap @@ -229,7 +229,6 @@ exports[`PaymentCard have to match snapshot 1`] = ` modifier="x-small bold" size={null} small={null} - style_type={null} >