diff --git a/packages/dnb-design-system-portal/src/core/jest/jestSetup.js b/packages/dnb-design-system-portal/src/core/jest/jestSetup.js
index 745f51a0c7a..8613e2322c9 100644
--- a/packages/dnb-design-system-portal/src/core/jest/jestSetup.js
+++ b/packages/dnb-design-system-portal/src/core/jest/jestSetup.js
@@ -3,7 +3,6 @@
*
*/
-// import '@babel/polyfill' // jest v24 may have usage of this
import { createSerializer } from 'jest-emotion'
import fakeProps from 'react-fake-props'
import { mount, render, shallow } from './enzyme'
diff --git a/packages/dnb-ui-lib/src/__tests__/assets/images/Logo.test.js b/packages/dnb-ui-lib/src/__tests__/assets/images/Logo.screenshot.test.js
similarity index 100%
rename from packages/dnb-ui-lib/src/__tests__/assets/images/Logo.test.js
rename to packages/dnb-ui-lib/src/__tests__/assets/images/Logo.screenshot.test.js
diff --git a/packages/dnb-ui-lib/src/__tests__/assets/images/__snapshots__/logo-test-js-logo-image-have-to-match-image-snapshot-1-37d94.snap.png b/packages/dnb-ui-lib/src/__tests__/assets/images/__snapshots__/logo-screenshot-test-js-logo-image-have-to-match-image-snapshot-1-49ee6.snap.png
similarity index 100%
rename from packages/dnb-ui-lib/src/__tests__/assets/images/__snapshots__/logo-test-js-logo-image-have-to-match-image-snapshot-1-37d94.snap.png
rename to packages/dnb-ui-lib/src/__tests__/assets/images/__snapshots__/logo-screenshot-test-js-logo-image-have-to-match-image-snapshot-1-49ee6.snap.png
diff --git a/packages/dnb-ui-lib/src/components/logo/Example.js b/packages/dnb-ui-lib/src/components/logo/Example.js
index 5d1717f3acb..f90d30408ab 100644
--- a/packages/dnb-ui-lib/src/components/logo/Example.js
+++ b/packages/dnb-ui-lib/src/components/logo/Example.js
@@ -4,16 +4,27 @@
*/
import React, { PureComponent, Fragment } from 'react'
-import Logo from './Logo'
+import ComponentBox from '../../../../dnb-design-system-portal/src/shared/inlineTags/ComponentBox'
class Example extends PureComponent {
render() {
return (
-
-
-
SVG logo
-
+
+ {/* @jsx */ `
+
+ `}
+
+
+ {/* @jsx */ `
+
+ H1 with the DNB Logo
+
+
+ Text with the DNB Logo
+
+ `}
+
)
}
diff --git a/packages/dnb-ui-lib/src/components/logo/Logo.js b/packages/dnb-ui-lib/src/components/logo/Logo.js
index 6a2d844ffd7..fc383d0ec00 100644
--- a/packages/dnb-ui-lib/src/components/logo/Logo.js
+++ b/packages/dnb-ui-lib/src/components/logo/Logo.js
@@ -58,13 +58,16 @@ export default class Logo extends PureComponent {
} = this.props
const rootParams = {
- className: classnames('dnb-logo', className, _className)
+ className: classnames('dnb-logo', className, _className),
+ role: 'img',
+ alt: 'DNB Logo',
+ ['data-ratio']: ratio,
+ ['aria-hidden']: true,
+ ...rest
}
const svgParams = {
- viewBox: '0 0 93.0362 64', // theese size are set to me assiosated with the svg path point values
- alt: 'DNB Logo',
- ...rest
+ viewBox: '0 0 93.0362 64' // theese size are set to me assiosated with the svg path point values
}
if (parseFloat(size) > -1 && width === null && height === null) {
@@ -83,6 +86,7 @@ export default class Logo extends PureComponent {
return (