Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update scoped vars in storybook #977

Merged
merged 2 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ duet-date-picker {
--duet-font-bold: var(--telekom-typography-font-weight-medium);
--duet-color-placeholder: var(--telekom-color-ui-additional-regular);
--duet-radius: var(--telekom-radius-standard);
--duet-color-text-active: var(
--telekom-color-text-and-icon-white-standard,
#ffffff
);
--duet-color-text-active: var(--telekom-color-text-and-icon-white-standard);
--duet-color-button: var(--telekom-color-background-surface);
--duet-color-surface: var(--telekom-color-background-surface);
--duet-z-index: 600;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--color: var(--telekom-color-text-and-icon-standard);
--radius: var(--telekom-radius-large);
--font-size: var(--telekom-typography-font-size-small);
--border: 1px solid var(--telekom-color-ui-additional-subtle);
--border: 1px solid var(--telekom-color-ui-additional-light);
--color-hover: var(--telekom-color-text-and-icon-primary-hovered);
--color-active: var(--telekom-color-text-and-icon-primary-pressed);
--color-button: var(--telekom-color-ui-additional-subtle);
Expand Down
9 changes: 3 additions & 6 deletions packages/components/src/components/tab-header/tab-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
--color: var(--telekom-color-text-and-icon-standard);
--color-hover: var(--telekom-color-text-and-icon-primary-hovered);
--color-selected: var(--telekom-color-text-and-icon-primary-standard);
--background-underline-hover: var(--telekom-color-primary-hovered);
--background-underline-active: var(--telekom-color-primary-pressed);
--color-active: var(--telekom-color-text-and-icon-primary-standard);
--box-shadow-focus: 0 0 0 var(--telekom-line-weight-highlight)
var(--telekom-color-functional-focus);
--spacing-right-slotted: var(--telekom-spacing-unit-x2);
Expand Down Expand Up @@ -97,13 +94,13 @@
color: var(--color-hover);
}
.tab-header:hover:after {
background-color: var(--background-underline-hover);
background-color: var(--color-hover);
}
.tab-header:active {
color: var(--color-active);
color: var(--color-selected);
}
.tab-header:active:after {
background-color: var(--background-underline-active);
background-color: var(--color-selected);
}
.tab-header ::slotted(*) {
margin-right: var(--spacing-right-slotted);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const TemplateAsterisk = (args, { argTypes }) => ({
--height-small: 120px;
--height-large: 160px;
--width-large: 160px;
--color-blue: var(--telekom-color-additional-blue-600);
--color-blue: var(--telekom-color-functional-informational-standard);
--color-white: var(--telekom-color-background-surface);
--color-black: var(--telekom-color-text-and-icon-functional-black);
--color-primary: var(--telekom-color-primary-standard);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ scale-checkbox {
var(--telekom-motion-easing-standard)
);
--color-text: var(--telekom-color-text-and-icon-standard);
--color-error: var(--telekom-color-text-and-icon-functional-danger);
--color-error: var(--telekom-color-functional-danger-standard);
--color-disabled: var(--telekom-color-text-and-icon-disabled);
--color-standard: var(--telekom-color-background-surface);
--background-disabled: var(--telekom-color-ui-outlined-fill-disabled);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const Template = (args, { argTypes }) => ({
--telekom-color-text-and-icon-primary-pressed
);
--box-shadow-navigation-focus: 0 0 0 var(--telekom-spacing-unit-x05) var(
--telekom-color-primary-standard
--telekom-color-functional-focus
);
--border-color-standard-hover: var(
--telekom-color-text-and-icon-white-standard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const TemplateCustomColor = (args, { argTypes }) => ({
--color-error: var(--telekom-color-text-and-icon-functional-danger);
--color-disabled: var(--telekom-color-text-and-icon-disabled);
--background: var(--telekom-color-primary-standard);
--color-inner-status: var(--telekom-color-background-surface);
--color-inner-status: var(--telekom-color-primary-standard);
--font-size-inner-status: var(--telekom-typography-font-size-small);
--font-size-status: var(--telekom-typography-font-size-small);
--font-weight-status: var(--telekom-typography-font-weight-extra-bold);
Expand All @@ -174,7 +174,7 @@ export const TemplateCustomColor = (args, { argTypes }) => ({
--font-size-status-description: var(--telekom-typography-font-size-small);
--font-weight-status-description: var(--telekom-typography-font-weight-bold);
--spacing-label: var(--telekom-spacing-unit-x2) 0;
--border: 1px solid var(--telekom-color-ui-additional-regular);
--border: 1px solid var(--telekom-color-ui-outlined-border-standard);
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ export const Template = (args, { argTypes }) => ({
--color: var(--telekom-color-text-and-icon-standard);
--color-hover: var(--telekom-color-text-and-icon-primary-hovered);
--color-selected: var(--telekom-color-text-and-icon-primary-standard);
--background-underline-hover: var(--telekom-color-primary-hovered);
--background-underline-active: var(--telekom-color-primary-pressed);
--color-active: var(--telekom-color-text-and-icon-primary-standard);
--box-shadow-focus: 0 0 0 var(--telekom-line-weight-highlight) var(
--telekom-color-functional-focus
);
Expand Down