+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/variation-type-ghost.svg",
+ width: "49px",
+ alt: "A ghost tag."
+ } %}
+ {% endcontentItem %}
+{% endcontentLayout %}
-### Strong
-
-Used when a high contrast tag is required.
-
-{% contentPageImage {
- src:"../../../assets/img/components/tag/variation-strong.svg",
- alt: "Strong tags with bold and strong background color.",
- width: 286
-} %}
-
-### Subtle
-
-Used when a low contrast tag is required.
-
-{% contentPageImage {
- src:"../../../assets/img/components/tag/variation-subtle.svg",
- alt: "Subtle tag with less contrast colors.",
- width: 362
-} %}
-
----
+___
## Modifiers
+### Emphasis
+
+Tags are available in two types of emphasis.
+Not all colour available within the subtle emphasis are available within the strong emphasis, for example, Brand, Neutral - alternative, Outline and Ghost have only Subtle variations.
+
+{% contentLayout %}
+ {% contentItem %}
+
Strong
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/modifier-emphasis-strong.svg",
+ width: "49px",
+ alt: "A variation of tag which uses strong colors."
+ } %}
+ {% endcontentItem %}
+ {% contentItem %}
+
Subtle
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/modifier-emphasis-subtle.svg",
+ width: "49px",
+ alt: "A variation of tag which uses subtle colors."
+ } %}
+ {% endcontentItem %}
+{% endcontentLayout %}
+
### Icon
Icons can be used to visually support the Tag’s label. Only available at the large size.
-{% contentPageImage {
- src:"../../../assets/img/components/tag/modifier-icon.svg",
- alt: "A tag with an icon.",
- width: 61
-} %}
+{% contentLayout %}
+ {% contentItem %}
+
With icon
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/modifier-icon.svg",
+ width: "69px",
+ alt: "A tag with an icon."
+ } %}
+ {% endcontentItem %}
+ {% contentItem %}
+
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/size-large.svg",
+ width: "126px",
+ alt: "Large size tag with 24px height."
+ } %}
+ {% endcontentItem %}
+{% endcontentLayout %}
-## Sizes
+---
-Outlines the Tag sizes that are available, and where they should be used across our products.
+## States
+
+Tag is available in 2 states. The disabled state has an opacity of 50%.
+
+{% contentLayout %}
+ {% contentItem %}
+
Default
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/state-default.svg",
+ width: "126px",
+ alt: "Default state of a tag."
+ } %}
+ {% endcontentItem %}
+ {% contentItem %}
+
Disabled
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/state-disabled.svg",
+ width: "126px",
+ alt: "Disabled state of a tag."
+ } %}
+ {% endcontentItem %}
+{% endcontentLayout %}
-### Height
+---
-Two size options are available to suit the scale required.
+## Content
-{% componentDetailsTable {
- tableData: sizes
-} %}
+### Label guidance
-### Width
+Tag doesn’t have a maximum width or overflow. The container width is dynamic to the content’s width.
-Container width is dynamic to the content’s width and retains 4px left and right padding.
+{% usage {
+ do: {
+ type: usageTypes.text,
+ items: [
+ "Use label with concise and scannable text.",
+ "Use no more than 3 words in both Large and Small tag labels.",
+ "Use sentence case in the label."
+ ]
+ },
+ dont: {
+ type: usageTypes.text,
+ items: [
+ "Don't overcrowd the label with unnecessary information or excessive details.",
+ "Don't use more than 3 words in the label."
+ ]
+ }
+} %}
-{% contentPageImage {
- src:"../../../assets/img/components/tag/size-width.svg",
- alt: "A tag tag with flexible width that hugs the content inside.",
- width: 92
+{% usage {
+ do: {
+ type: usageTypes.image,
+ items: [{
+ src: "../../../assets/img/components/tag/content-label-guidance-do.svg",
+ width: "88px",
+ alt: "A tag with a one word in the label."
+ }]
+ },
+ dont: {
+ type: usageTypes.image,
+ items: [{
+ src: "../../../assets/img/components/tag/content-label-guidance-don_t.svg",
+ width: "175px",
+ alt: "A tag with a sentence in the label."
+ }]
+ }
} %}
----
+___
-## Meaning and purpose
+## Visual representation
-Tags can be used to indicate status or used to convey specific meanings within JET which are displayed below.
+Tags and colours can be used to indicate status or used to convey specific meanings within JET which are displayed below.
{% contentPageImage {
- src:"../../../assets/img/components/tag/meaning-and-purpose.svg",
- alt: "Meaning of colors in a tag and purpose of the tags.",
- width: 318
+ src:"../../../assets/img/components/tag/visual-representation.svg",
+ alt: "Specific meaning of colors and the purpose of tags.",
+ width: "352px"
} %}
-___
+---
## Examples
@@ -150,22 +308,33 @@ Outlines the atomic level interactive elements for the component.
Here are some examples of tags in left-to-right context:
+{% contentLayout %}
+ {% contentItem %}
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/ltr-example-offer.svg",
+ width: "226px",
+ alt: "A left-to-right example of an offer with a subtle green tag."
+ } %}
+ {% endcontentItem %}
+ {% contentItem %}
+ {% contentPageImage {
+ src: "../../../assets/img/components/tag/ltr-example-opening-hours.svg",
+ width: "402px",
+ alt: "A left-to-right example of opening hours of a restaurant with a subtle brand tag."
+ } %}
+ {% endcontentItem %}
+{% endcontentLayout %}
+
{% contentPageImage {
src:"../../../assets/img/components/tag/example-ltr-restaurant-listing.svg",
alt: "A left-to-right example of a tag used on a restaurant listing card.",
- width: 827
-} %}
-
-{% contentPageImage {
- src:"../../../assets/img/components/tag/example-ltr-menu-item.svg",
- alt: "A left-to-right example of disabled tags on a menu item card.",
- width: 912
+ width: "827px"
} %}
{% contentPageImage {
- src:"../../../assets/img/components/tag/example-ltr-disabled-menu-item.svg",
- alt: "A left-to-right example of disabled tag on a disabled menu item card.",
- width: 912
+ src:"../../../assets/img/components/tag/ltr-example-disabled-menu-card.svg",
+ alt: "A left-to-right example of disabled offer tag in a menu item card.",
+ width: "827px"
} %}
### RTL examples
@@ -173,15 +342,15 @@ Here are some examples of tags in left-to-right context:
Here are some examples of tags in right-to-left context:
{% contentPageImage {
- src:"../../../assets/img/components/tag/example-rtl-restaurant-listing.svg",
- alt: "A right-to-left example of a tag used on a restaurant listing card.",
- width: 827
+ src: "../../../assets/img/components/tag/rtl-example-restaurant-listing.svg",
+ alt: "A right-to-left example of neutral and brand tags used on a restaurant listing card.",
+ width: "827px"
} %}
{% contentPageImage {
- src:"../../../assets/img/components/tag/example-rtl-disabled-menu-item.svg",
- alt: "A right-to-left example of disabled tag on a disabled menu item card.",
- width: 912
+ src: "../../../assets/img/components/tag/rtl-example-price-breakdown.svg",
+ alt: "A right-to-left example of an offer tag on used in price breakdown.",
+ width: "359px"
} %}
___
From d6bc04f5f093eda3e2c3050e3bc73b5db9bb0875 Mon Sep 17 00:00:00 2001
From: Raouf
Date: Wed, 17 Jan 2024 19:23:06 +0100
Subject: [PATCH 5/9] feat(pie-tag): DSW-1523 add pie tag code docs (#1175)
* feat(pie-tag): DSW-1523 add pie tag code docs
* fix(pie-docs): DSW-1523 fix navigation
---
apps/pie-docs/src/components/tag/code/code.md | 148 ++++++++++++++++++
.../src/components/tag/code/props.json | 41 +++++
.../src/components/tag/code/slots.json | 19 +++
.../src/components/tag/overview/overview.md | 4 +-
.../snapshots/expected-routes.snapshot.json | 1 +
packages/components/pie-tag/README.md | 85 +---------
6 files changed, 216 insertions(+), 82 deletions(-)
create mode 100644 apps/pie-docs/src/components/tag/code/code.md
create mode 100644 apps/pie-docs/src/components/tag/code/props.json
create mode 100644 apps/pie-docs/src/components/tag/code/slots.json
diff --git a/apps/pie-docs/src/components/tag/code/code.md b/apps/pie-docs/src/components/tag/code/code.md
new file mode 100644
index 0000000000..662c6b6571
--- /dev/null
+++ b/apps/pie-docs/src/components/tag/code/code.md
@@ -0,0 +1,148 @@
+---
+eleventyNavigation:
+ key: Code
+ parent: Tag
+ order: 3
+shouldShowContents: true
+eleventyComputed:
+ props: "{% include './props.json' %}"
+ slots: "{% include './slots.json' %}"
+---
+
+## Overview
+
+
+
+`pie-tag` is a Web Component built using the Lit library. It offers a simple and accessible tag component for web applications.
+
+This component can be easily integrated into various frontend frameworks and customized through a set of properties.
+
+## Installation
+
+To install `pie-tag` in your application, run the following on your command line:
+
+```shell
+# npm
+$ npm i @justeattakeaway/pie-tag
+```
+
+```shell
+# yarn
+$ yarn add @justeattakeaway/pie-tag
+```
+
+{% notification {
+ type: "neutral",
+ iconName: "link",
+ message: "For more information on using PIE components as part of an application, check out the [Getting Started Guide.](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components)."
+} %}
+
+## Playground
+
+
+
+## Variants
+
+
+
+## Props
+
+{% componentDetailsTable {
+ tableData: props
+} %}
+
+Since the component is not interactive, it doesn't have a disabled property. To give the Tag a disabled look, please set the `--tag-opacity` css variable. Recommended opacity level for disabled tag is 0.5.
+
+## Slots
+
+{% componentDetailsTable {
+ tableData: slots
+} %}
+
+### Using `pie-icons-webc` with the `pie-tag` icon slot
+
+We recommend using `pie-icons-webc` when using the `icon` slot. Here is an example of how you would do this:
+
+```html
+
+
+
+ Label
+
+```
+
+## Examples
+
+For HTML:
+
+```js
+// import as module into a js file e.g. main.js
+import '@justeattakeaway/pie-tag'
+```
+
+```html
+
+Label
+
+```
+
+For Native JS Applications, Vue, Angular, Svelte etc.:
+
+```js
+// Vue templates (using Nuxt 3)
+import { PieTag } from '@justeattakeaway/pie-tag';
+
+Label
+```
+
+For React Applications:
+
+```js
+// React templates (using Next 13)
+import { PieTag } from '@justeattakeaway/pie-tag/dist/react';
+
+Label
+
+```
+
+{% notification {
+ type: "neutral",
+ iconName: "link",
+ message: "For more examples, see [here](https://github.com/justeattakeaway/pie-aperture/tree/main)."
+} %}
+
+
+## Peer Dependencies
+
+When using `pie-tag`, you will also need to include a couple of dependencies to ensure the component renders as expected.
+
+{% notification {
+ type: "neutral",
+ iconName: "link",
+ message: "See the [PIE Wiki](https://github.com/justeattakeaway/pie-aperture/tree/main) for more information on peer dependencies."
+} %}
+
+## Changelog
+
+{% notification {
+ type: "neutral",
+ iconName: "link",
+ message: "See [here](https://github.com/justeattakeaway/pie/blob/main/packages/components/pie-tag/CHANGELOG.md)."
+} %}
diff --git a/apps/pie-docs/src/components/tag/code/props.json b/apps/pie-docs/src/components/tag/code/props.json
new file mode 100644
index 0000000000..93d2528e7b
--- /dev/null
+++ b/apps/pie-docs/src/components/tag/code/props.json
@@ -0,0 +1,41 @@
+{
+ "headings": ["Prop", "Options", "Description", "Default"],
+ "rows": [
+ [
+ "size",
+ {
+ "type": "code",
+ "item": ["\"small\"", "\"large\""]
+ },
+ "Sets the size of the tag.",
+ {
+ "type": "code",
+ "item": ["\"large\""]
+ }
+ ],
+ [
+ "variant",
+ {
+ "type": "code",
+ "item": ["\"neutral-alternative\"", "\"neutral\"", "\"outline\"", "\"ghost\"", "\"blue\"", "\"green\"", "\"yellow\"", "\"red\"", "\"brand\""]
+ },
+ "Sets the variant of the button.",
+ {
+ "type": "code",
+ "item": ["\"neutral\""]
+ }
+ ],
+ [
+ "isStrong",
+ {
+ "type": "code",
+ "item": ["true", "false"]
+ },
+ "If `true`, displays strong tag styles for `green`, `yellow`, `red`, `blue` and `neutral` variants.",
+ {
+ "type": "code",
+ "item": ["false"]
+ }
+ ]
+ ]
+}
diff --git a/apps/pie-docs/src/components/tag/code/slots.json b/apps/pie-docs/src/components/tag/code/slots.json
new file mode 100644
index 0000000000..2dc96f218e
--- /dev/null
+++ b/apps/pie-docs/src/components/tag/code/slots.json
@@ -0,0 +1,19 @@
+{
+ "headings": ["Slot", "Description"],
+ "rows": [
+ [
+ {
+ "type": "code",
+ "item": ["default"]
+ },
+ "The default slot is used to pass text into the tag component."
+ ],
+ [
+ {
+ "type": "code",
+ "item": ["icon"]
+ },
+ "Used to pass in an icon to the tag component."
+ ]
+ ]
+}
diff --git a/apps/pie-docs/src/components/tag/overview/overview.md b/apps/pie-docs/src/components/tag/overview/overview.md
index 8cbaa9df61..658b265ced 100644
--- a/apps/pie-docs/src/components/tag/overview/overview.md
+++ b/apps/pie-docs/src/components/tag/overview/overview.md
@@ -1,7 +1,7 @@
---
eleventyNavigation:
- key: Tag
- parent: Components
+ key: Overview
+ parent: Tag
order: 1
eleventyComputed:
sizes: "{% include './sizes.json' %}"
diff --git a/apps/pie-docs/test/snapshots/expected-routes.snapshot.json b/apps/pie-docs/test/snapshots/expected-routes.snapshot.json
index 4a9e6aa383..b1af74ffcf 100644
--- a/apps/pie-docs/test/snapshots/expected-routes.snapshot.json
+++ b/apps/pie-docs/test/snapshots/expected-routes.snapshot.json
@@ -60,6 +60,7 @@
"components/switch/code",
"components/switch/overview",
"components/tabs",
+ "components/tag/code",
"components/tag/overview",
"components/text-input",
"components/textarea",
diff --git a/packages/components/pie-tag/README.md b/packages/components/pie-tag/README.md
index 8a5136d99b..31a3f9afaa 100644
--- a/packages/components/pie-tag/README.md
+++ b/packages/components/pie-tag/README.md
@@ -8,18 +8,9 @@
-# Table of Contents
-
-1. [Introduction](#pie-tag)
-2. [Installation](#installation)
-3. [Importing the component](#importing-the-component)
-4. [Peer Dependencies](#peer-dependencies)
-5. [Props](#props)
-6. [Contributing](#contributing)
-
## pie-tag
-`pie-tag` is a Web Component built using the Lit library. A tag is a small visual element used to represent and categorize information within a user interface.
+`pie-tag` is a Web Component built using the Lit library.
This component can be easily integrated into various frontend frameworks and customized through a set of properties.
@@ -36,79 +27,13 @@ $ npm i @justeattakeaway/pie-tag
$ yarn add @justeattakeaway/pie-tag
```
-For full information on using PIE components as part of an application, check out the [Getting Started Guide](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components).
-
-
-### Importing the component
-
-#### JavaScript
-```js
-// Default – for Native JS Applications, Vue, Angular, Svelte, etc.
-import { PieTag } from '@justeattakeaway/pie-tag';
-
-// If you don't need to reference the imported object, you can simply
-// import the module which registers the component as a custom element.
-import '@justeattakeaway/pie-tag';
-```
-
-#### React
-```js
-// React
-// For React, you will need to import our React-specific component build
-// which wraps the web component using @lit/react
-import { PieTag } from '@justeattakeaway/pie-tag/dist/react';
-```
-
-> [!NOTE]
-> When using the React version of the component, please make sure to also
-> include React as a [peer dependency](#peer-dependencies) in your project.
-
-
-## Peer Dependencies
+## Documentation
-> [!IMPORTANT]
-> When using `pie-tag`, you will also need to include a couple of dependencies to ensure the component renders as expected. See [the PIE Wiki](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components#expected-dependencies) for more information and how to include these in your application.
+Visit [Link | PIE Design System](https://pie.design/components/tag/overview) to view more information on this component.
+## Questions
-## Props
-
-| Property | Type | Default | Description |
-|---|---|---|---|
-| size | `String` | `large` | Size of the tag. Can be either `large` or `small` |
-| variant | `String` | `neutral` | Variant of the tag, one of `variants` - `neutral-alternative`, `neutral`, `outline`, `ghost`, `blue`, `green`, `yellow`, `red`, `brand` |
-| isStrong | `Boolean` | `false` | If `true`, displays strong tag styles for `green`, `yellow`, `red`, `blue` and `neutral` variants'|
-
-Since the component is not interactive it doesn't have a disabled property. To give the Tag a disabled look please use `--tag-opacity` css variable. Recommended opacity level for disabled tag is 0.5.
-
-In your markup or JSX, you can then use these to set the properties for the `pie-tag` component:
-
-```html
-
-Label
-
-
-Label
-```
-## Slots
-
-| Slot | Description |
-| Default slot | Used to pass text into the tag component. |
-| icon | Used to pass in an icon to the tag component. We recommend using `pie-icons-webc` for defining this icon, but this can also accept an SVG icon. |
-
-### Using `pie-icons-webc` with `pie-tag` icon slot
-
-We recommend using `pie-icons-webc` when using the `icon` slot. Here is an example of how you would do this:
-
-```html
-
-
-
- Vegan
-
-```
+Please head to [FAQs | PIE Design System](https://pie.design/support/contact-us/) to see our FAQs and get in touch.
## Contributing
From a2167c369cfcb40ed30222520ee5beb122056eac Mon Sep 17 00:00:00 2001
From: Raouf
Date: Fri, 26 Jan 2024 15:49:05 +0100
Subject: [PATCH 6/9] fix(pie-docs): DSW-1523 address PR comments
---
apps/pie-docs/src/components/tag/code/code.md | 11 -----------
.../src/components/tag/overview/overview.md | 16 ++++++++--------
2 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/apps/pie-docs/src/components/tag/code/code.md b/apps/pie-docs/src/components/tag/code/code.md
index 662c6b6571..0c33a6135c 100644
--- a/apps/pie-docs/src/components/tag/code/code.md
+++ b/apps/pie-docs/src/components/tag/code/code.md
@@ -128,17 +128,6 @@ import { PieTag } from '@justeattakeaway/pie-tag/dist/react';
message: "For more examples, see [here](https://github.com/justeattakeaway/pie-aperture/tree/main)."
} %}
-
-## Peer Dependencies
-
-When using `pie-tag`, you will also need to include a couple of dependencies to ensure the component renders as expected.
-
-{% notification {
- type: "neutral",
- iconName: "link",
- message: "See the [PIE Wiki](https://github.com/justeattakeaway/pie-aperture/tree/main) for more information on peer dependencies."
-} %}
-
## Changelog
{% notification {
diff --git a/apps/pie-docs/src/components/tag/overview/overview.md b/apps/pie-docs/src/components/tag/overview/overview.md
index 658b265ced..0313e8fe2a 100644
--- a/apps/pie-docs/src/components/tag/overview/overview.md
+++ b/apps/pie-docs/src/components/tag/overview/overview.md
@@ -15,7 +15,7 @@ Tags can be embedded in other components such as cards, data tables (among other
{% contentPageImage {
src:"../../../assets/img/components/tag/overview.svg",
- alt: "A group of tags that are horizontally stacked together."
+ alt: "A group of tags."
} %}
---
@@ -147,7 +147,7 @@ ___
### Emphasis
Tags are available in two types of emphasis.
-Not all colour available within the subtle emphasis are available within the strong emphasis, for example, Brand, Neutral - alternative, Outline and Ghost have only Subtle variations.
+Not all colours available within the subtle emphasis are available within the strong emphasis, for example, brand, neutral - alternative, outline and ghost have only subtle variations.
{% contentLayout %}
{% contentItem %}
@@ -198,7 +198,7 @@ Icons can be used to visually support the Tag’s label. Only available at the l
{% contentLayout %}
{% contentItem %}
Small
-
16px height. Icon isn’t available at the small size option.
+
16px height. Small tags don't support icons.
{% contentPageImage {
src: "../../../assets/img/components/tag/size-small.svg",
width: "37px",
@@ -253,9 +253,9 @@ Tag doesn’t have a maximum width or overflow. The container width is dynamic t
do: {
type: usageTypes.text,
items: [
- "Use label with concise and scannable text.",
- "Use no more than 3 words in both Large and Small tag labels.",
- "Use sentence case in the label."
+ "Use concise and scannable text.",
+ "Use 3 words or fewer.",
+ "Use sentence case."
]
},
dont: {
@@ -273,7 +273,7 @@ Tag doesn’t have a maximum width or overflow. The container width is dynamic t
items: [{
src: "../../../assets/img/components/tag/content-label-guidance-do.svg",
width: "88px",
- alt: "A tag with a one word in the label."
+ alt: "A tag with a one-word label."
}]
},
dont: {
@@ -349,7 +349,7 @@ Here are some examples of tags in right-to-left context:
{% contentPageImage {
src: "../../../assets/img/components/tag/rtl-example-price-breakdown.svg",
- alt: "A right-to-left example of an offer tag on used in price breakdown.",
+ alt: "A right-to-left example of an offer tag used in a price breakdown.",
width: "359px"
} %}
From 1d4bfb86943353feba1be57b070cd7254682b626 Mon Sep 17 00:00:00 2001
From: Raouf
Date: Fri, 26 Jan 2024 16:00:15 +0100
Subject: [PATCH 7/9] fix(pie-docs): DSW-1523 rebase
---
apps/pie-docs/src/components/tag/overview/overview.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/pie-docs/src/components/tag/overview/overview.md b/apps/pie-docs/src/components/tag/overview/overview.md
index 0313e8fe2a..68cf23bde0 100644
--- a/apps/pie-docs/src/components/tag/overview/overview.md
+++ b/apps/pie-docs/src/components/tag/overview/overview.md
@@ -2,7 +2,7 @@
eleventyNavigation:
key: Overview
parent: Tag
- order: 1
+ order: 43
eleventyComputed:
sizes: "{% include './sizes.json' %}"
shouldShowContents: true
From fd58ee9dac7dd3625069c7bbfd17e2c1c27ba6ce Mon Sep 17 00:00:00 2001
From: Raouf
Date: Fri, 26 Jan 2024 16:08:54 +0100
Subject: [PATCH 8/9] fix(pie-docs): DSW-1523 update heading sizes
---
apps/pie-docs/src/components/tag/overview/overview.md | 10 +++++-----
apps/pie-docs/src/components/tag/tag.md | 1 +
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/apps/pie-docs/src/components/tag/overview/overview.md b/apps/pie-docs/src/components/tag/overview/overview.md
index 68cf23bde0..8454ccec87 100644
--- a/apps/pie-docs/src/components/tag/overview/overview.md
+++ b/apps/pie-docs/src/components/tag/overview/overview.md
@@ -2,7 +2,7 @@
eleventyNavigation:
key: Overview
parent: Tag
- order: 43
+ order: 1
eleventyComputed:
sizes: "{% include './sizes.json' %}"
shouldShowContents: true
@@ -151,7 +151,7 @@ Not all colours available within the subtle emphasis are available within the st
{% contentLayout %}
{% contentItem %}
-
Strong
+
Strong
{% contentPageImage {
src: "../../../assets/img/components/tag/modifier-emphasis-strong.svg",
width: "49px",
@@ -159,7 +159,7 @@ Not all colours available within the subtle emphasis are available within the st
} %}
{% endcontentItem %}
{% contentItem %}
-
Subtle
+
Subtle
{% contentPageImage {
src: "../../../assets/img/components/tag/modifier-emphasis-subtle.svg",
width: "49px",
@@ -174,7 +174,7 @@ Icons can be used to visually support the Tag’s label. Only available at the l
{% contentLayout %}
{% contentItem %}
-
With icon
+
With icon
{% contentPageImage {
src: "../../../assets/img/components/tag/modifier-icon.svg",
width: "69px",
@@ -182,7 +182,7 @@ Icons can be used to visually support the Tag’s label. Only available at the l
} %}
{% endcontentItem %}
{% contentItem %}
-
Without icon
+
Without icon
{% contentPageImage {
src: "../../../assets/img/components/tag/modifier-no-icon.svg",
width: "49px",
diff --git a/apps/pie-docs/src/components/tag/tag.md b/apps/pie-docs/src/components/tag/tag.md
index 4baa2470ce..48f283a9aa 100644
--- a/apps/pie-docs/src/components/tag/tag.md
+++ b/apps/pie-docs/src/components/tag/tag.md
@@ -3,4 +3,5 @@ eleventyNavigation:
key: Tag
parent: Components
url: /components/tag/overview/
+ order: 42
---
\ No newline at end of file
From d6b21b5a8236e2ce740d956ac628dbdbf2397e31 Mon Sep 17 00:00:00 2001
From: Raouf
Date: Fri, 26 Jan 2024 16:26:30 +0100
Subject: [PATCH 9/9] fix(pie-docs): DSW-1523 remove unused file
---
.../src/components/tag/overview/overview.md | 2 --
.../src/components/tag/overview/sizes.json | 34 -------------------
2 files changed, 36 deletions(-)
delete mode 100644 apps/pie-docs/src/components/tag/overview/sizes.json
diff --git a/apps/pie-docs/src/components/tag/overview/overview.md b/apps/pie-docs/src/components/tag/overview/overview.md
index 8454ccec87..31f393242e 100644
--- a/apps/pie-docs/src/components/tag/overview/overview.md
+++ b/apps/pie-docs/src/components/tag/overview/overview.md
@@ -3,8 +3,6 @@ eleventyNavigation:
key: Overview
parent: Tag
order: 1
-eleventyComputed:
- sizes: "{% include './sizes.json' %}"
shouldShowContents: true
---
diff --git a/apps/pie-docs/src/components/tag/overview/sizes.json b/apps/pie-docs/src/components/tag/overview/sizes.json
deleted file mode 100644
index 78f791cfd4..0000000000
--- a/apps/pie-docs/src/components/tag/overview/sizes.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "headings": [
- "",
- "Size",
- "Height",
- "Notes"
- ],
- "rows": [
- [
- {
- "type": "image",
- "item": {
- "src": "../../../assets/img/components/tag/size-height-large.svg",
- "alt": "Large size tag with 24px height."
- }
- },
- "Large",
- "24px",
- "-"
- ],
- [
- {
- "type": "image",
- "item": {
- "src": "../../../assets/img/components/tag/size-height-small.svg",
- "alt": "Small size tag with 16px height."
- }
- },
- "Small",
- "16px",
- "Icons are not available for the small size."
- ]
- ]
-}
\ No newline at end of file