diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/tag/Examples.js b/packages/dnb-design-system-portal/src/docs/uilib/components/tag/Examples.js
index b01c726361a..7aecc5298be 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/components/tag/Examples.js
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/tag/Examples.js
@@ -5,9 +5,6 @@
import ComponentBox from 'dnb-design-system-portal/src/shared/tags/ComponentBox'
import {
- funds as Funds,
- stocks as Stocks,
- equities_and_mutual_funds as Equities,
send as Send,
einvoice as EInvoice,
ainvoice as AInvoice,
@@ -28,13 +25,13 @@ export const TagDefault = () => (
export const TagWithIcon = () => (
{() => /* jsx */ `
-
-
-
-
+
+
+
+
`}
@@ -48,43 +45,13 @@ export const TagClickable = () => (
)
-export const TagGroupWithData = () => (
-
- {() => /* jsx */ `
-
-`}
-
-)
-
export const TagRemovable = () => (
{() => /* jsx */ `
- { console.log("I was deleted!") },
- },
-]}/>
+
+ { console.log("I was deleted!")}}/>
+
`}
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/tag/demos.md b/packages/dnb-design-system-portal/src/docs/uilib/components/tag/demos.md
index 1d9038c7524..9b2fb7660bc 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/components/tag/demos.md
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/tag/demos.md
@@ -6,7 +6,6 @@ import {
TagDefault,
TagWithIcon,
TagClickable,
-TagGroupWithData,
TagRemovable,
TagMultipleRemovable,
} from 'Docs/uilib/components/tag/Examples'
@@ -25,10 +24,6 @@ See more examples below.
-#### Tag group with data
-
-
-
#### Clickable Tag
diff --git a/packages/dnb-eufemia/src/components/tag/TagGroup.tsx b/packages/dnb-eufemia/src/components/tag/TagGroup.tsx
index 75dd521bddf..ad50fa9b9c2 100644
--- a/packages/dnb-eufemia/src/components/tag/TagGroup.tsx
+++ b/packages/dnb-eufemia/src/components/tag/TagGroup.tsx
@@ -8,8 +8,6 @@ import { createSpacingClasses } from '../space/SpacingHelper'
import Context from '../../shared/Context'
import { ISpacingProps } from '../../shared/interfaces'
import { extendPropsWithContext } from '../../shared/component-helper'
-import Tag, { TagProps } from './Tag'
-
export interface TagGroupProps {
/**
* Aria label to describe the tag group
@@ -17,12 +15,6 @@ export interface TagGroupProps {
*/
label: string
- /**
- * Pass in a list of Tag objects.
- * Default: null
- */
- data?: TagProps[]
-
/**
* Custom className on the component root
* Default: null
@@ -52,7 +44,6 @@ function TagGroup(localProps: TagGroupProps & ISpacingProps) {
label,
className,
children: childrenProp,
- data,
...props
} = extendPropsWithContext(
{ ...defaultProps, ...localProps },
@@ -80,9 +71,6 @@ function TagGroup(localProps: TagGroupProps & ISpacingProps) {
{label}
- {data?.map((tag) => (
-
- ))}
{children}
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/Tag.screenshot.test.js b/packages/dnb-eufemia/src/components/tag/__tests__/Tag.screenshot.test.js
index 974ac03bbe1..b445d1b2307 100644
--- a/packages/dnb-eufemia/src/components/tag/__tests__/Tag.screenshot.test.js
+++ b/packages/dnb-eufemia/src/components/tag/__tests__/Tag.screenshot.test.js
@@ -3,7 +3,7 @@
* This file will not run on "test:staged" because we don't require any related files
*/
-import {
+ import {
testPageScreenshot,
setupPageScreenshot,
} from '../../../core/jest/jestSetupScreenshots'
@@ -33,14 +33,6 @@ describe('Tag screenshot', () => {
expect(screenshot).toMatchImageSnapshot()
})
})
-
- it('have to match Tag group with data', async () => {
- const screenshot = await testPageScreenshot({
- selector: '[data-visual-test="tag-group-with-data"] .dnb-tag',
- })
- expect(screenshot).toMatchImageSnapshot()
-})
-
it('have to match a removable Tag', async () => {
const screenshot = await testPageScreenshot({
selector: '[data-visual-test="tag-removable"] .dnb-tag',
@@ -53,4 +45,4 @@ it('have to match a removable Tag list', async () => {
selector: '[data-visual-test="tag-removable-list"] .dnb-tag',
})
expect(screenshot).toMatchImageSnapshot()
-})
+})
\ No newline at end of file
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/Tag.test.tsx b/packages/dnb-eufemia/src/components/tag/__tests__/Tag.test.tsx
index 72f7a5a0390..d373966f480 100644
--- a/packages/dnb-eufemia/src/components/tag/__tests__/Tag.test.tsx
+++ b/packages/dnb-eufemia/src/components/tag/__tests__/Tag.test.tsx
@@ -23,27 +23,6 @@ describe('Tag Group', () => {
expect(screen.queryByTestId('tag-group-label').textContent).toBe(label)
})
- it('renders a tag group with multiple tag items by data prop', () => {
- render(
-
- )
-
- expect(screen.queryAllByTestId('tag')).toHaveLength(3)
- })
-
it('renders a tag group with multiple tag elements by children', () => {
render(
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-have-to-match-tag-group-with-data-1-c7a10.snap.png b/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-have-to-match-tag-group-with-data-1-c7a10.snap.png
deleted file mode 100644
index 8e28b6a84fd..00000000000
Binary files a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-have-to-match-tag-group-with-data-1-c7a10.snap.png and /dev/null differ
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-group-with-data-1-95b44.snap.png b/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-group-with-data-1-95b44.snap.png
deleted file mode 100644
index b7aaf1207bc..00000000000
Binary files a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-group-with-data-1-95b44.snap.png and /dev/null differ
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-icon-1-25cd8.snap.png b/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-icon-1-25cd8.snap.png
index e35cf1efd9f..8e28b6a84fd 100644
Binary files a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-icon-1-25cd8.snap.png and b/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-icon-1-25cd8.snap.png differ
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-primary-icon-1-73553.snap.png b/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-primary-icon-1-73553.snap.png
deleted file mode 100644
index 45fb7db740d..00000000000
Binary files a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-primary-icon-1-73553.snap.png and /dev/null differ
diff --git a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-secondary-icon-1-c0b56.snap.png b/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-secondary-icon-1-c0b56.snap.png
deleted file mode 100644
index e9a8c882754..00000000000
Binary files a/packages/dnb-eufemia/src/components/tag/__tests__/__snapshots__/tag-screenshot-test-js-tag-screenshot-have-to-match-tag-with-secondary-icon-1-c0b56.snap.png and /dev/null differ