-
{this.heading}
+
+ {this.heading}
+
{this.hasTextSlot && (
diff --git a/packages/components/src/components/notification/readme.md b/packages/components/src/components/notification/readme.md
index 6b1327df11..c887f7a336 100644
--- a/packages/components/src/components/notification/readme.md
+++ b/packages/components/src/components/notification/readme.md
@@ -9,11 +9,13 @@
| Property | Attribute | Description | Type | Default |
| ------------------ | -------------------- | --------------------------------------------------------- | ------------------------------------------------------- | ----------------- |
-| `closeButtonLabel` | `close-button-label` | (optional) Label for close button | `string` | `'Close Pop-up'` |
+| `ariaHeading` | `aria-heading` | (optional) string prepended to the heading | `string` | `'Information'` |
+| `closeButtonLabel` | `close-button-label` | (optional) Label for close button | `string` | `'Close'` |
| `closeButtonTitle` | `close-button-title` | (optional) `title` for close button | `string` | `'Close'` |
| `delay` | `delay` | (optional) Time in milliseconds until it closes by itself | `number` | `undefined` |
| `dismissible` | `dismissible` | (optional) Show the close button | `boolean` | `false` |
| `heading` | `heading` | Heading | `string` | `undefined` |
+| `headingLevel` | `heading-level` | Default aria-level for heading | `number` | `2` |
| `innerAriaLive` | `inner-aria-live` | (optional) `aria-live` of element | `string` | `'assertive'` |
| `opened` | `opened` | (optional) Visible | `boolean` | `undefined` |
| `styles` | `styles` | (optional) Injected styles | `string` | `undefined` |
diff --git a/packages/components/src/components/slider/slider.css b/packages/components/src/components/slider/slider.css
index 17c4e8be0a..db02571317 100644
--- a/packages/components/src/components/slider/slider.css
+++ b/packages/components/src/components/slider/slider.css
@@ -137,6 +137,12 @@
border-radius: var(--telekom-radius-circle);
}
+@media screen and (forced-colors: active), (-ms-high-contrast: active) {
+ [part='step-mark'] {
+ border: 2px solid;
+ }
+}
+
[part='meta'] {
display: flex;
justify-content: space-between;
diff --git a/packages/storybook-vue/stories/components/notification/Notification.stories.mdx b/packages/storybook-vue/stories/components/notification/Notification.stories.mdx
index b0bbe42973..ed8b58d8d3 100644
--- a/packages/storybook-vue/stories/components/notification/Notification.stories.mdx
+++ b/packages/storybook-vue/stories/components/notification/Notification.stories.mdx
@@ -51,6 +51,17 @@ import ScaleNotification from './ScaleNotification.vue';
type: 'text'
}
},
+ headingLevel: {
+ control: {
+ type: 'number'
+ }
+ },
+ ariaHeading: {
+ defaultValue: 'Information',
+ control: {
+ type: 'text'
+ }
+ },
closeButtonLabel: {
control: {
type: 'text'
@@ -95,6 +106,7 @@ export const Template = (args, context) => ({
:variant="variant"
:opened="opened"
:dismissible="dismissible"
+ :aria-heading="ariaHeading"
:delay="delay"
:inner-aria-live="innerAriaLive"
:close-button-label="closeButtonLabel"
@@ -211,7 +223,8 @@ export const Template = (args, context) => ({
heading: 'Warning toast headline',
type: 'toast',
variant: 'warning',
- text: 'Lorem ipsum dolor sit amet, consetetur tempordede invidunt ut labore et dolore.'
+ text: 'Lorem ipsum dolor sit amet, consetetur tempordede invidunt ut labore et dolore.',
+ ariaHeading: 'Warning'
}}>
{Template.bind({})}
@@ -372,6 +385,7 @@ In order to "toast" a notification, append it to a div with the `.scl-toast-stac
heading: 'Danger notification with icon and title',
variant: 'danger',
dismissible: false,
+ ariaHeading: 'Danger'
}}>
{Template.bind({})}
@@ -392,6 +406,7 @@ In order to "toast" a notification, append it to a div with the `.scl-toast-stac
heading: 'Warning notification with icon and title',
variant: 'warning',
dismissible: false,
+ ariaHeading: 'Warning'
}}>
{Template.bind({})}
diff --git a/packages/storybook-vue/stories/components/notification/ScaleNotification.vue b/packages/storybook-vue/stories/components/notification/ScaleNotification.vue
index 16f8ffe189..40b36ba336 100644
--- a/packages/storybook-vue/stories/components/notification/ScaleNotification.vue
+++ b/packages/storybook-vue/stories/components/notification/ScaleNotification.vue
@@ -16,7 +16,8 @@ export default {
innerAriaLive: { type: String },
closeButtonLabel: { type: String },
closeButtonTitle: { type: String },
- styles: { type: String }
+ styles: { type: String },
+ ariaHeading: { type: String }
},
render() {
return this.$slots.default
diff --git a/packages/storybook-vue/stories/components/tooltip/ScaleTooltip.vue b/packages/storybook-vue/stories/components/tooltip/ScaleTooltip.vue
index ad6fe996a5..38182953db 100644
--- a/packages/storybook-vue/stories/components/tooltip/ScaleTooltip.vue
+++ b/packages/storybook-vue/stories/components/tooltip/ScaleTooltip.vue
@@ -10,7 +10,7 @@
:flip="flip"
>
- Hover me
+ Hover me
diff --git a/packages/storybook-vue/stories/components/tooltip/Tooltip.stories.mdx b/packages/storybook-vue/stories/components/tooltip/Tooltip.stories.mdx
index d9ff1cc963..af8e59dc98 100644
--- a/packages/storybook-vue/stories/components/tooltip/Tooltip.stories.mdx
+++ b/packages/storybook-vue/stories/components/tooltip/Tooltip.stories.mdx
@@ -254,6 +254,6 @@ export const FocusTemplate = (args, { argTypes }) => ({
```html
- Hover me
+ Hover me
```
From 537f932215578f866115a2599bb0c31d425bb04f Mon Sep 17 00:00:00 2001
From: felix-ico <97440128+felix-ico@users.noreply.github.com>
Date: Wed, 19 Jul 2023 15:55:53 +0200
Subject: [PATCH 5/8] fix: avoid additional render (#2057)
Co-authored-by: felixw
---
.../storybook-vue/.storybook/sidebar-links-addon/register.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/storybook-vue/.storybook/sidebar-links-addon/register.js b/packages/storybook-vue/.storybook/sidebar-links-addon/register.js
index 050523749e..4da383017d 100644
--- a/packages/storybook-vue/.storybook/sidebar-links-addon/register.js
+++ b/packages/storybook-vue/.storybook/sidebar-links-addon/register.js
@@ -53,7 +53,9 @@ addons.register('@telekom/scale-sidebar-links-addon', (api) => {
if (!locale) {
return;
}
-
+ if (!sidebarLinksContainer) {
+ return
+ }
if (sidebarLinksContainer) {
sidebarLinksContainer.remove();
}
From 5125c54076308f87ae901ec0afb930a3c15686d3 Mon Sep 17 00:00:00 2001
From: felix-ico <97440128+felix-ico@users.noreply.github.com>
Date: Fri, 21 Jul 2023 17:03:14 +0200
Subject: [PATCH 6/8] Fix/design tokens alignment (#2066)
* fix: update tokens
* docs: update css var snippets
---
.../src/components/checkbox/checkbox.css | 2 +-
.../components/collapsible/collapsible.css | 8 +--
.../components/date-picker/date-picker.css | 18 ++++---
.../accordion/Accordion.stories.mdx | 16 +++---
.../breadcrumb/Breadcrumb.stories.mdx | 6 +--
.../components/button/Button.stories.mdx | 28 +++++------
.../components/callout/Callout.stories.mdx | 6 +--
.../stories/components/card/Card.stories.mdx | 2 +-
.../checkbox-group/CheckboxGroup.stories.mdx | 6 +--
.../components/checkbox/Checkbox.stories.mdx | 16 +++---
.../stories/components/chip/Chip.stories.mdx | 3 +-
.../date-picker/DatePicker.stories.mdx | 4 +-
.../components/divider/Divider.stories.mdx | 7 +--
.../DropdownSelect.stories.mdx | 23 +++++----
.../components/dropdown/DropDown.stories.mdx | 20 ++++----
.../flyout-menu/MenuFlyout.stories.mdx | 5 ++
.../stories/components/link/Link.stories.mdx | 2 +-
.../stories/components/list/List.stories.mdx | 13 +++--
.../LoadingSpinner.stories.mdx | 26 ++++++++++
.../components/modal/Modal.stories.mdx | 31 ++++++------
.../NotificationBadge.stories.mdx | 28 +++++++++++
.../notification/Notification.stories.mdx | 16 ++++--
.../pagination/Pagination.stories.mdx | 27 ++++++++++
.../progress-bar/ProgressBar.stories.mdx | 2 +-
.../RadioButtonGroup.stories.mdx | 46 ++++++++++--------
.../rating-stars/RatingStars.stories.mdx | 2 +-
.../SegmentedButton.stories.mdx | 45 +++++++++++++++++
.../sidebar-navigation/SidebarNav.stories.mdx | 4 +-
.../components/slider/Slider.stories.mdx | 4 +-
.../components/switch/switch.stories.mdx | 4 +-
.../tab-navigation/TabNav.stories.mdx | 10 ++--
.../components/table/Table.stories.mdx | 16 +++---
.../stories/components/tag/Tag.stories.mdx | 16 +++---
.../TelekomBrandHeader.stories.mdx | 2 +-
.../components/text-area/TextArea.stories.mdx | 18 ++++---
.../text-field/TextField.stories.mdx | 19 ++++----
.../components/tooltip/Tooltip.stories.mdx | 29 +++++++++++
...ec-js-date-picker-dark-standard-1-snap.png | Bin 24233 -> 24182 bytes
...c-js-date-picker-light-standard-1-snap.png | Bin 28250 -> 26331 bytes
39 files changed, 363 insertions(+), 167 deletions(-)
diff --git a/packages/components/src/components/checkbox/checkbox.css b/packages/components/src/components/checkbox/checkbox.css
index bd0e6f1b00..d8c2a22624 100644
--- a/packages/components/src/components/checkbox/checkbox.css
+++ b/packages/components/src/components/checkbox/checkbox.css
@@ -34,7 +34,7 @@ scale-checkbox {
--spacing-control: var(--telekom-spacing-composition-space-02);
--spacing-left-control: var(--telekom-spacing-composition-space-03);
--radius-control: var(--telekom-radius-small);
- --border-width-control: var(--telekom-spacing-composition-space-01);
+ --border-width-control: var(--telekom-line-weight-standard);
/*helper-text*/
--transition-helper-text: var(--transition);
diff --git a/packages/components/src/components/collapsible/collapsible.css b/packages/components/src/components/collapsible/collapsible.css
index 552c77ecc9..352b125ddb 100644
--- a/packages/components/src/components/collapsible/collapsible.css
+++ b/packages/components/src/components/collapsible/collapsible.css
@@ -13,9 +13,7 @@
--spacing-y: var(--telekom-spacing-composition-space-06);
/* button */
- --font-size-button: var(--telekom-typography-font-size-callout);
- --font-weight-button: var(--telekom-typography-font-weight-extra-bold);
- --line-height-button: var(--telekom-typography-line-spacing-standard);
+ --font: var(--telekom-text-style-heading-5);
--border-width-button: var(--telekom-spacing-composition-space-02);
--radius-button: var(--telekom-radius-small);
--spacing-left-button: 0;
@@ -67,9 +65,7 @@
padding-right: 0;
padding-bottom: 0;
background-color: transparent;
- font-size: var(--font-size-button);
- font-weight: var(--font-weight-button);
- line-height: var(--line-height-button);
+ font: var(--font);
border-width: var(--border-width-button);
border-radius: var(--radius-button);
padding-left: var(--spacing-left-button);
diff --git a/packages/components/src/components/date-picker/date-picker.css b/packages/components/src/components/date-picker/date-picker.css
index 24acf31a2a..70707602fa 100644
--- a/packages/components/src/components/date-picker/date-picker.css
+++ b/packages/components/src/components/date-picker/date-picker.css
@@ -141,7 +141,7 @@ duet-date-picker .duet-date__toggle:active scale-icon-content-calendar {
var(--telekom-motion-easing-standard);
pointer-events: none;
font: var(--telekom-text-style-ui);
- transform: translate(0.75rem, 0.875rem);
+ transform: translate(var(--telekom-spacing-composition-space-05), 0.875rem);
}
duet-date-picker .duet-date__input::placeholder {
@@ -152,8 +152,9 @@ duet-date-picker .duet-date__input::placeholder {
}
duet-date-picker .duet-date__header {
- margin-top: 8px;
- margin-bottom: 8px;
+ margin-top: var(--telekom-spacing-composition-space-04);
+ margin-bottom: var(--telekom-spacing-composition-space-04);
+ font: var(--telekom-text-style-ui);
}
duet-date-picker .duet-date__select {
@@ -200,11 +201,11 @@ duet-date-picker .duet-date__table {
.scale-date-picker--status-error duet-date-picker .duet-date__input {
margin-top: -1px;
margin-bottom: -1px;
- border: var(--telekom-spacing-composition-space-02) solid
+ border: var(--telekom-line-weight-highlight) solid
var(--telekom-color-functional-danger-standard);
}
.scale-date-picker--status-error duet-date-picker .duet-date__input:hover {
- border: var(--telekom-spacing-composition-space-02) solid
+ border: var(--telekom-line-weight-highlight) solid
var(--telekom-color-functional-danger-hovered);
}
.scale-date-picker--status-error duet-date-picker .duet-date__input:focus {
@@ -259,9 +260,12 @@ duet-date-picker .duet-date__table {
duet-date-picker .duet-date__dialog-content {
border: none;
- box-shadow: var(--telekom-shadow-top);
+ box-shadow: var(--telekom-shadow-raised-standard);
max-width: 324px;
- padding: var(--telekom-spacing-composition-space-04);
+ padding: var(--telekom-spacing-composition-space-06)
+ var(--telekom-spacing-composition-space-04)
+ var(--telekom-spacing-composition-space-04)
+ var(--telekom-spacing-composition-space-04);
margin-top: var(--telekom-spacing-composition-space-03);
}
diff --git a/packages/storybook-vue/stories/components/accordion/Accordion.stories.mdx b/packages/storybook-vue/stories/components/accordion/Accordion.stories.mdx
index 59d578d261..c4b9da4e97 100644
--- a/packages/storybook-vue/stories/components/accordion/Accordion.stories.mdx
+++ b/packages/storybook-vue/stories/components/accordion/Accordion.stories.mdx
@@ -107,16 +107,14 @@ export const Template = (args, { argTypes }) => ({
```css
/* scale-collapsible */
:host {
- --spacing-y: var(--telekom-spacing-unit-x4);
+ --spacing-y: var(--telekom-spacing-composition-space-06);
/* button */
- --font-size-button: var(--telekom-typography-font-size-callout);
- --font-weight-button: var(--telekom-typography-font-weight-extra-bold);
- --line-height-button: var(--telekom-typography-line-spacing-standard);
- --border-width-button: var(--telekom-spacing-unit-x05);
+ --font: var(--telekom-text-style-heading-5);
+ --border-width-button: var(--telekom-spacing-composition-space-02);
--radius-button: var(--telekom-radius-small);
--spacing-left-button: 0;
- --spacing-left-button-text: var(--telekom-spacing-unit-x2);
+ --spacing-left-button-text: var(--telekom-spacing-composition-space-04);
--color-button-hover: var(--telekom-color-text-and-icon-primary-hovered);
--color-button-active: var(--telekom-color-text-and-icon-primary-pressed);
--background-button-hover: none;
@@ -124,10 +122,10 @@ export const Template = (args, { argTypes }) => ({
var(--telekom-color-functional-focus-standard);
/* content */
- --spacing-right-content: var(--telekom-spacing-unit-x12);
+ --spacing-right-content: var(--telekom-spacing-composition-space-14);
--spacing-left-content: 34px;
- --spacing-top-content: var(--telekom-spacing-unit-x4);
- --spacing-bottom-content: var(--telekom-spacing-unit-x6);
+ --spacing-top-content: var(--telekom-spacing-composition-space-06);
+ --spacing-bottom-content: var(--telekom-spacing-composition-space-08);
}
```
diff --git a/packages/storybook-vue/stories/components/breadcrumb/Breadcrumb.stories.mdx b/packages/storybook-vue/stories/components/breadcrumb/Breadcrumb.stories.mdx
index 56768d5bc9..9acb346740 100644
--- a/packages/storybook-vue/stories/components/breadcrumb/Breadcrumb.stories.mdx
+++ b/packages/storybook-vue/stories/components/breadcrumb/Breadcrumb.stories.mdx
@@ -75,14 +75,14 @@ export const Template = (args, { argTypes }) => ({
```css
:host {
- --spacing-left: calc(-1 * var(--telekom-spacing-unit-x2));
+ --spacing-left: calc(-1 * var(--telekom-spacing-composition-space-04));
--font-size-list-item: var(--telekom-typography-font-size-caption);
--color-separator: var(--telekom-color-text-and-icon-additional);
- --spacing-y-item: var(--telekom-spacing-unit-x1);
- --spacing-x-item: var(--telekom-spacing-unit-x2);
+ --spacing-y-item: var(--telekom-spacing-composition-space-03);
+ --spacing-x-item: var(--telekom-spacing-composition-space-04);
--color-link: var(--telekom-color-text-and-icon-additional);
--radius-link: var(--telekom-radius-standard);
diff --git a/packages/storybook-vue/stories/components/button/Button.stories.mdx b/packages/storybook-vue/stories/components/button/Button.stories.mdx
index 4c494045c7..540c46e216 100644
--- a/packages/storybook-vue/stories/components/button/Button.stories.mdx
+++ b/packages/storybook-vue/stories/components/button/Button.stories.mdx
@@ -111,11 +111,11 @@ export const Template = (args, { argTypes }) => ({
```css
:host {
--width: auto;
- --spacing-x-right: var(--telekom-spacing-unit-x5);
- --spacing-x-left: var(--telekom-spacing-unit-x5);
- --spacing-x-icon-only: var(--telekom-spacing-unit-x3);
- --min-height: var(--telekom-spacing-unit-x11);
- --min-width: var(--telekom-spacing-unit-x11);
+ --spacing-x-right: var(--telekom-spacing-composition-space-07);
+ --spacing-x-left: var(--telekom-spacing-composition-space-07);
+ --spacing-x-icon-only: var(--telekom-spacing-composition-space-05);
+ --min-height: var(--telekom-spacing-composition-space-13);
+ --min-width: var(--telekom-spacing-composition-space-13);
--radius: var(--telekom-radius-standard);
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
@@ -123,17 +123,17 @@ export const Template = (args, { argTypes }) => ({
--font-weight: var(--telekom-typography-font-weight-bold);
--font-size: var(--telekom-typography-font-size-body);
--line-height: var(--telekom-typography-line-spacing-tight);
- --spacing-icon-x: var(--telekom-spacing-unit-x2);
+ --spacing-icon-x: var(--telekom-spacing-composition-space-04);
--vertical-align: middle;
/* size: small */
--font-size-small: var(--telekom-typography-font-size-caption);
--line-height-small: 1.125rem;
- --min-height-small: var(--telekom-spacing-unit-x8);
- --spacing-x-right-small: var(--telekom-spacing-unit-x4);
- --spacing-x-left-small: var(--telekom-spacing-unit-x4);
- --spacing-x-icon-only-small: var(--telekom-spacing-unit-x0);
- --spacing-icon-x-small: var(--telekom-spacing-unit-x1);
+ --min-height-small: var(--telekom-spacing-composition-space-10);
+ --spacing-x-right-small: var(--telekom-spacing-composition-space-06);
+ --spacing-x-left-small: var(--telekom-spacing-composition-space-06);
+ --spacing-x-icon-only-small: var(--telekom-spacing-composition-space-00);
+ --spacing-icon-x-small: var(--telekom-spacing-composition-space-03);
/* variant: primary */
--radius-primary: var(--radius);
@@ -146,7 +146,7 @@ export const Template = (args, { argTypes }) => ({
/* variant: secondary */
--radius-secondary: var(--radius);
- --border-width-secondary: var(--telekom-spacing-unit-x025);
+ --border-width-secondary: var(--telekom-spacing-composition-space-01);
--background-secondary: transparent;
--color-secondary: var(--telekom-color-text-and-icon-standard);
--color-secondary-hover: var(--telekom-color-text-and-icon-standard);
@@ -174,8 +174,8 @@ export const Template = (args, { argTypes }) => ({
/* variant: ghost */
--radius-ghost: var(--radius);
- --border-width-ghost: var(--telekom-spacing-unit-x025);
- --spacing-x-ghost: var(--telekom-spacing-unit-x2);
+ --border-width-ghost: var(--telekom-spacing-composition-space-01);
+ --spacing-x-ghost: var(--telekom-spacing-composition-space-04);
--color-ghost: var(--telekom-color-text-and-icon-primary-standard);
--color-ghost-hover: var(--telekom-color-text-and-icon-primary-hovered);
--color-ghost-active: var(--telekom-color-text-and-icon-primary-pressed);
diff --git a/packages/storybook-vue/stories/components/callout/Callout.stories.mdx b/packages/storybook-vue/stories/components/callout/Callout.stories.mdx
index e7a4af9d44..f1d6087d14 100644
--- a/packages/storybook-vue/stories/components/callout/Callout.stories.mdx
+++ b/packages/storybook-vue/stories/components/callout/Callout.stories.mdx
@@ -109,12 +109,12 @@ export const CANVAS_HEIGHT = 204
--position: absolute;
--background: var(--telekom-color-ui-extra-strong);
--color: var(--telekom-color-text-and-icon-inverted-standard);
- --spacing: var(--telekom-spacing-unit-x8);
+ --spacing: var(--telekom-spacing-composition-space-10);
--min-width: 6rem;
- --aspect-ratio: 1;
+ --aspect-ratio: 1 / 1;
--rotation: 0deg;
- --font-standard: var(--telekom-text-style-body-bold);
--font-small: var(--telekom-text-style-body-bold);
+ --font-medium: var(--telekom-text-style-body-bold);
--font-large: var(--telekom-text-style-heading-1);
}
```
diff --git a/packages/storybook-vue/stories/components/card/Card.stories.mdx b/packages/storybook-vue/stories/components/card/Card.stories.mdx
index ac93ae713f..b402763dc7 100644
--- a/packages/storybook-vue/stories/components/card/Card.stories.mdx
+++ b/packages/storybook-vue/stories/components/card/Card.stories.mdx
@@ -116,7 +116,7 @@ export const Template = (args, { argTypes }) => ({
var(--telekom-color-functional-focus-standard);
--box-shadow-active: var(--telekom-shadow-raised-pressed);
- --spacing-body: var(--telekom-spacing-unit-x6);
+ --spacing-body: var(--telekom-spacing-composition-space-08);
--spacing-body-slotted: 0;
--spacing-body-slotted-interactive: 0;
diff --git a/packages/storybook-vue/stories/components/checkbox-group/CheckboxGroup.stories.mdx b/packages/storybook-vue/stories/components/checkbox-group/CheckboxGroup.stories.mdx
index 3664b6f876..3633e88920 100644
--- a/packages/storybook-vue/stories/components/checkbox-group/CheckboxGroup.stories.mdx
+++ b/packages/storybook-vue/stories/components/checkbox-group/CheckboxGroup.stories.mdx
@@ -48,13 +48,13 @@ import ScaleCheckboxGroup from './ScaleCheckboxGroup.vue';
```css
:host {
/* checkbox-group container */
- --spacing-left-container: var(--telekom-spacing-unit-x8);
+ --spacing-left-container: var(--telekom-spacing-composition-space-10);
/* checkbox-group checkbox */
- --spacing-left-checkbox: var(--telekom-spacing-unit-x2);
+ --spacing-left-checkbox: var(--telekom-spacing-composition-space-04);
/* slotted item */
- --spacing-top-slotted-item: var(--telekom-spacing-unit-x3);
+ --spacing-top-slotted-item: var(--telekom-spacing-composition-space-05);
}
```
diff --git a/packages/storybook-vue/stories/components/checkbox/Checkbox.stories.mdx b/packages/storybook-vue/stories/components/checkbox/Checkbox.stories.mdx
index 504443b681..915a66902d 100644
--- a/packages/storybook-vue/stories/components/checkbox/Checkbox.stories.mdx
+++ b/packages/storybook-vue/stories/components/checkbox/Checkbox.stories.mdx
@@ -67,7 +67,7 @@ export const Template = (args, { argTypes }) => ({
```css
scale-checkbox {
- --spacing-x: var(--telekom-spacing-unit-x2);
+ --spacing-x: var(--telekom-spacing-composition-space-04);
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
--color-text: var(--telekom-color-text-and-icon-standard);
@@ -82,13 +82,13 @@ scale-checkbox {
--color-primary-active: var(--telekom-color-text-and-icon-standard);
/*control*/
- --width-control: var(--telekom-spacing-unit-x5);
- --height-control: var(--telekom-spacing-unit-x5);
+ --width-control: var(--telekom-spacing-composition-space-07);
+ --height-control: var(--telekom-spacing-composition-space-07);
--transition-control: var(--transition);
- --spacing-control: var(--telekom-spacing-unit-x05);
- --spacing-left-control: var(--telekom-spacing-unit-x1);
+ --spacing-control: var(--telekom-spacing-composition-space-02);
+ --spacing-left-control: var(--telekom-spacing-composition-space-03);
--radius-control: var(--telekom-radius-small);
- --border-width-control: var(--telekom-spacing-unit-x025);
+ --border-width-control: var(--telekom-line-weight-standard);
/*helper-text*/
--transition-helper-text: var(--transition);
@@ -108,8 +108,8 @@ scale-checkbox {
--color-icon-checked-active: var(
--telekom-color-text-and-icon-white-standard
);
- --width-icon: var(--telekom-spacing-unit-x4);
- --height-icon: var(--telekom-spacing-unit-x4);
+ --width-icon: var(--telekom-spacing-composition-space-06);
+ --height-icon: var(--telekom-spacing-composition-space-06);
--stroke-width: var(--stroke-width-checkbox, 0.5px);
}
```
diff --git a/packages/storybook-vue/stories/components/chip/Chip.stories.mdx b/packages/storybook-vue/stories/components/chip/Chip.stories.mdx
index 42d701f385..291abd2233 100644
--- a/packages/storybook-vue/stories/components/chip/Chip.stories.mdx
+++ b/packages/storybook-vue/stories/components/chip/Chip.stories.mdx
@@ -144,7 +144,8 @@ export const TemplateInteractive = (args, { argTypes }) => ({
```css
:host {
- --height: 34px;
+ --height: 32px;
+
--font-size: var(--telekom-typography-font-size-body);
--line-height: var(--telekom-typography-line-spacing-standard);
--font-weight: var(--telekom-typography-font-weight-bold);
diff --git a/packages/storybook-vue/stories/components/date-picker/DatePicker.stories.mdx b/packages/storybook-vue/stories/components/date-picker/DatePicker.stories.mdx
index cac5209869..d43cb7f1b9 100644
--- a/packages/storybook-vue/stories/components/date-picker/DatePicker.stories.mdx
+++ b/packages/storybook-vue/stories/components/date-picker/DatePicker.stories.mdx
@@ -243,9 +243,9 @@ duet-date-picker {
--duet-z-index: 600;
--duet-z-index-toggle: 2;
- --spacing-x: var(--telekom-spacing-unit-x3);
+ --spacing-x: var(--telekom-spacing-composition-space-05);
- --spacing-heading: 0 0 var(--telekom-spacing-unit-x4) 0;
+ --spacing-heading: 0 0 var(--telekom-spacing-composition-space-06) 0;
--font-size-heading: var(--telekom-typography-font-size-body);
--radius-day: var(--telekom-radius-standard);
--font-size-day: var(--telekom-typography-font-size-body);
diff --git a/packages/storybook-vue/stories/components/divider/Divider.stories.mdx b/packages/storybook-vue/stories/components/divider/Divider.stories.mdx
index e39f8fbf4d..5c654d4eac 100644
--- a/packages/storybook-vue/stories/components/divider/Divider.stories.mdx
+++ b/packages/storybook-vue/stories/components/divider/Divider.stories.mdx
@@ -51,10 +51,11 @@ export const Template = (args, { argTypes }) => ({
:host {
--width: 100%;
--height: 100%;
- --spacing: var(--telekom-spacing-unit-x3);
+ --spacing: var(--telekom-spacing-composition-space-05);
--color: var(--telekom-color-ui-faint);
- --border-width: var(--telekom-spacing-unit-x025);
- --min-height-vertical: var(--telekom-spacing-unit-x6);
+ --border-width: var(--telekom-spacing-composition-space-01);
+ --min-height-vertical: var(--telekom-spacing-composition-space-08);
+}
```
For Shadow Parts, please inspect the element's #shadow.
diff --git a/packages/storybook-vue/stories/components/dropdown-select/DropdownSelect.stories.mdx b/packages/storybook-vue/stories/components/dropdown-select/DropdownSelect.stories.mdx
index 1c9fd8ef14..4ff2c6733f 100644
--- a/packages/storybook-vue/stories/components/dropdown-select/DropdownSelect.stories.mdx
+++ b/packages/storybook-vue/stories/components/dropdown-select/DropdownSelect.stories.mdx
@@ -84,34 +84,39 @@ export const Template = (args, { argTypes }) => ({
```css
:host {
--font-weight: var(--telekom-typography-font-weight-bold);
- --height: var(--telekom-spacing-unit-x11);
+ --height: var(--telekom-spacing-composition-space-13);
--color: var(--telekom-color-text-and-icon-standard);
--color-disabled: var(--telekom-color-text-and-icon-disabled);
--background-disabled: none;
--background-hover: var(--telekom-color-ui-state-fill-hovered);
- --border: var(--telekom-spacing-unit-x025) solid
+ --border: var(--telekom-spacing-composition-space-01) solid
var(--telekom-color-ui-border-standard);
--border-color-hover: var(--telekom-color-ui-border-hovered);
--border-color-focus: var(--telekom-color-ui-border-hovered);
--border-color-disabled: var(--telekom-color-ui-border-disabled);
- --border-invalid: var(--telekom-spacing-unit-x05) solid
+ --border-invalid: var(--telekom-spacing-composition-space-02) solid
var(--telekom-color-functional-danger-hovered);
--focus-outline: var(--telekom-line-weight-highlight) solid
var(--telekom-color-functional-focus-standard);
- --spacing-x: var(--telekom-spacing-unit-x3);
+ --spacing-x: var(--telekom-spacing-composition-space-05);
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
--radius: var(--telekom-radius-standard);
- --spacing-x-for-helper-text: var(--telekom-spacing-unit-x1);
+ --spacing-x-for-helper-text: var(--telekom-spacing-composition-space-03);
/*combobox*/
--transition-combobox: var(--transition);
--background-combobox: var(--telekom-color-ui-state-fill-standard);
- --spacing-combobox: 1.125rem calc(2rem - var(--telekom-spacing-unit-x025))
- 0.25rem calc(0.75rem - var(--telekom-spacing-unit-x025));
+ /*
+ 18px 32px 4px 12px
+ (subtracting 1px from border)
+ */
+ --spacing-combobox: 1.125rem
+ calc(2rem - var(--telekom-spacing-composition-space-01)) 0.25rem
+ calc(0.75rem - var(--telekom-spacing-composition-space-01));
/*meta*/
- --spacing-y-meta: var(--telekom-spacing-unit-x1);
+ --spacing-y-meta: var(--telekom-spacing-composition-space-03);
--color-meta: var(--telekom-color-text-and-icon-standard);
/*icon*/
@@ -128,7 +133,7 @@ export const Template = (args, { argTypes }) => ({
--transform-label: translate(var(--spacing-x), 0.875rem);
--transform-label-animated: translate(
var(--spacing-x),
- calc(0.25rem + var(--telekom-spacing-unit-x025))
+ calc(0.25rem + var(--telekom-spacing-composition-space-01))
);
/*listbox*/
diff --git a/packages/storybook-vue/stories/components/dropdown/DropDown.stories.mdx b/packages/storybook-vue/stories/components/dropdown/DropDown.stories.mdx
index 21bb9e20d9..e8a48b3bc9 100644
--- a/packages/storybook-vue/stories/components/dropdown/DropDown.stories.mdx
+++ b/packages/storybook-vue/stories/components/dropdown/DropDown.stories.mdx
@@ -95,20 +95,20 @@ export const Template = (args, { argTypes }) => ({
```css
:host {
--font-weight: var(--telekom-typography-font-weight-bold);
- --height: var(--telekom-spacing-unit-x11);
- --spacing-x: var(--telekom-spacing-unit-x3);
- --spacing-dropdown: 18px var(--telekom-spacing-unit-x10) 5px
+ --height: var(--telekom-spacing-composition-space-13);
+ --spacing-x: var(--telekom-spacing-composition-space-05);
+ --spacing-dropdown: 18px var(--telekom-spacing-composition-space-12) 5px
calc(var(--spacing-x) - 1px);
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
--radius: var(--telekom-radius-standard);
- --border: var(--telekom-spacing-unit-x025) solid
+ --border: var(--telekom-spacing-composition-space-01) solid
var(--telekom-color-ui-border-standard);
- --border-danger: var(--telekom-spacing-unit-x05) solid
+ --border-danger: var(--telekom-spacing-composition-space-02) solid
var(--telekom-color-functional-danger-standard);
- --border-success: var(--telekom-spacing-unit-x05) solid
+ --border-success: var(--telekom-spacing-composition-space-02) solid
var(--telekom-color-functional-success-standard);
- --border-warning: var(--telekom-spacing-unit-x05) solid
+ --border-warning: var(--telekom-spacing-composition-space-02) solid
var(--telekom-color-functional-warning-standard);
--border-color-hover: var(--telekom-color-ui-border-hovered);
--border-color-focus: var(--telekom-color-ui-border-hovered);
@@ -119,18 +119,18 @@ export const Template = (args, { argTypes }) => ({
--background-disabled: none;
--color: var(--telekom-color-text-and-icon-standard);
--background-color: var(--telekom-color-ui-state-fill-standard);
- --margin-bottom-helper-text: var(--telekom-spacing-unit-x1);
+ --margin-bottom-helper-text: var(--telekom-spacing-composition-space-03);
/*input*/
--transition-input: var(--transition);
--font-size-input: var(--telekom-typography-font-size-body);
/*meta*/
- --spacing-y-meta: var(--telekom-spacing-unit-x1);
+ --spacing-y-meta: var(--telekom-spacing-composition-space-03);
--color-meta: var(--telekom-color-text-and-icon-standard);
/*icon*/
- --height-icon: var(--telekom-spacing-unit-x5);
+ --height-icon: var(--telekom-spacing-composition-space-07);
--color-icon: var(--telekom-color-text-and-icon-standard);
--color-icon-hover: var(--telekom-color-text-and-icon-standard);
--color-icon-active: var(--telekom-color-text-and-icon-standard);
diff --git a/packages/storybook-vue/stories/components/flyout-menu/MenuFlyout.stories.mdx b/packages/storybook-vue/stories/components/flyout-menu/MenuFlyout.stories.mdx
index 84d737d3cc..aa21675fc8 100644
--- a/packages/storybook-vue/stories/components/flyout-menu/MenuFlyout.stories.mdx
+++ b/packages/storybook-vue/stories/components/flyout-menu/MenuFlyout.stories.mdx
@@ -105,6 +105,11 @@ import ScaleMenuFlyout from './ScaleMenuFlyout.vue';
--spacing-x-list: 0;
}
+:host(menu-flyout-item) {
+ --focus-outline: var(--telekom-line-weight-highlight) solid
+ var(--telekom-color-functional-focus-standard);
+}
+
/* menu-flyout-divider */
:host(scale-menu-flyout-divider) {
--color: var(--telekom-color-ui-faint);
diff --git a/packages/storybook-vue/stories/components/link/Link.stories.mdx b/packages/storybook-vue/stories/components/link/Link.stories.mdx
index ac81703294..dc26dddc58 100644
--- a/packages/storybook-vue/stories/components/link/Link.stories.mdx
+++ b/packages/storybook-vue/stories/components/link/Link.stories.mdx
@@ -124,7 +124,7 @@ export const Template = (args, { argTypes }) => ({
```css
:host {
--font-weight: ;
- --spacing-x-icon: var(--telekom-spacing-unit-x1);
+ --spacing-x-icon: var(--telekom-spacing-composition-space-03);
--line-offset: 0.0625em;
/* initial */
diff --git a/packages/storybook-vue/stories/components/list/List.stories.mdx b/packages/storybook-vue/stories/components/list/List.stories.mdx
index 25b0d84dd8..97c3d65712 100644
--- a/packages/storybook-vue/stories/components/list/List.stories.mdx
+++ b/packages/storybook-vue/stories/components/list/List.stories.mdx
@@ -105,7 +105,7 @@ export const TemplateCustomIcon = (args) => ({
```css
:host {
--spacing-left: 0;
- --spacing-left-nested: var(--telekom-spacing-unit-x2);
+ --spacing-left-nested: var(--telekom-spacing-composition-space-04);
}
/* scale-list-item */
@@ -113,8 +113,10 @@ export const TemplateCustomIcon = (args) => ({
--display: block;
--font-size: var(--telekom-typography-font-size-body);
--line-height: var(--telekom-typography-line-spacing-standard);
- --spacing-left: calc(0.5ch + var(--telekom-spacing-unit-x5));
- --spacing-left-nested: calc(0.5ch + var(--telekom-spacing-unit-x4));
+ --spacing-left: calc(0.5ch + var(--telekom-spacing-composition-space-07));
+ --spacing-left-nested: calc(
+ 0.5ch + var(--telekom-spacing-composition-space-06)
+ );
--font-marker-ordered: var(--telekom-text-style-body);
--font-marker-ordered-nested: var(--telekom-text-style-small-bold);
@@ -122,10 +124,11 @@ export const TemplateCustomIcon = (args) => ({
--telekom-typography-line-spacing-standard
);
--spacing-top-marker-ordered-nested: calc(
- var(--telekom-spacing-unit-x4) - var(--telekom-spacing-unit-x3)
+ var(--telekom-spacing-composition-space-06) -
+ var(--telekom-spacing-composition-space-05)
);
- --spacing-right-no-marker: var(--telekom-spacing-unit-x2);
+ --spacing-right-no-marker: var(--telekom-spacing-composition-space-04);
}
```
diff --git a/packages/storybook-vue/stories/components/loading-spinner/LoadingSpinner.stories.mdx b/packages/storybook-vue/stories/components/loading-spinner/LoadingSpinner.stories.mdx
index e5d871b8e6..ef90e8bff5 100644
--- a/packages/storybook-vue/stories/components/loading-spinner/LoadingSpinner.stories.mdx
+++ b/packages/storybook-vue/stories/components/loading-spinner/LoadingSpinner.stories.mdx
@@ -85,6 +85,32 @@ export const Template = () => ({
```
+### Scoped CSS variables
+
+```css
+:host {
+ --size-outer-small: 24px;
+ --size-outer-large: 48px;
+ --size-inner-small: 24px;
+ --size-inner-large: 48px;
+
+ --line-height-size-small: 24px;
+ --line-height-size-large: 48px;
+
+ --font: var(--telekom-text-style-ui-bold);
+
+ --color-circle-primary: var(--telekom-color-primary-standard);
+ --color-circle-primary-inner: var(--telekom-color-ui-subtle);
+ --color-text-primary: var(--telekom-color-text-and-icon-additional);
+ --color-circle-white: var(--telekom-color-ui-base);
+ --color-circle-white-inner: var(--telekom-color-ui-regular);
+ --color-text-white: var(--telekom-color-text-and-icon-white-standard);
+
+ --spacing-vertical: var(--telekom-spacing-composition-space-05);
+ --spacing-horizontal: var(--telekom-spacing-composition-space-06);
+}
+```
+
## Small Size & Vertical Text (Primary)