Skip to content
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
18 changes: 0 additions & 18 deletions packages/components/accordion/accordion-trigger.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
flex-direction: row;
align-items: center;

background: transparent;
border: none;
outline: none;

& .kbq-accordion-trigger__icon {
box-sizing: initial;

Expand All @@ -28,14 +24,6 @@
margin-bottom: calc(-1 * #{var(--kbq-size-3xs)});
}

&:hover:not([data-disabled='true']) {
cursor: pointer;

& .kbq-accordion-trigger__icon {
color: var(--kbq-accordion-item-states-hover-icon-color);
}
}

&.kbq-accordion-trigger_fill {
padding: var(--kbq-accordion-size-item-header-variant-fill-padding);

Expand Down Expand Up @@ -65,12 +53,6 @@
transform: rotate(-180deg);
}
}

&[data-disabled='true'] {
& .kbq-accordion-trigger__icon {
color: var(--kbq-accordion-item-states-disabled-icon-color) !important;
}
}
}

button.kbq-accordion-trigger {
Expand Down
11 changes: 9 additions & 2 deletions packages/components/accordion/accordion.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,21 @@
}

&[data-state='open'] {
transition: 300ms ease-out;
transition: height 300ms ease-out;
height: var(--radix-accordion-content-height);
}

&[data-state='closed'] {
transition: 300ms ease-out;
transition: height 300ms ease-out;
height: 0;
}

@media (prefers-reduced-motion: reduce) {
&[data-state='open'],
&[data-state='closed'] {
transition: none;
}
}
}

@include kbq-accordion-theme();
Expand Down
4 changes: 0 additions & 4 deletions packages/components/alert/_alert-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
}

@mixin kbq-alert-theme() {
.kbq-alert__close:focus {
outline: none;
}

.kbq-alert.kbq-alert_default {
&.kbq-alert_error {
@include kbq-alert-style(default, error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
min-height: 50px;

border-radius: var(--kbq-size-xs);
// base transparent border so the .cdk-keyboard-focused border-color renders a focus ring (matches list-item-base)
border: var(--kbq-size-3xs) solid transparent;

@include common.user-select(none);

Expand Down
4 changes: 4 additions & 0 deletions packages/components/core/styles/common/_animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@
repeat;
background-size: 32px 32px;
animation: kbq-progress 1s linear infinite;

@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
variable-constant-background: map.get($tokens, 'code-block-#{$scheme}-hljs-variable-constant-background'),
variable-constant-color: map.get($tokens, 'code-block-#{$scheme}-hljs-variable-constant-color'),
variable-language-background: map.get($tokens, 'code-block-#{$scheme}-hljs-variable-language-background'),
variable-language-color: map.get($tokens, 'code-block-#{$scheme}-hljs-variable-language-color') r
variable-language-color: map.get($tokens, 'code-block-#{$scheme}-hljs-variable-language-color')
)
);

Expand Down
2 changes: 1 addition & 1 deletion packages/components/datepicker/_datepicker-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

&.kbq-disabled {
color: var(--kbq-states-foreground-disabled);
color: var(--kbq-datepicker-grid-cell-states-disabled-text);
background: var(--kbq-datepicker-grid-cell-states-disabled-background);
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/components/datepicker/datepicker-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
}

.kbq-datepicker-toggle__button.kbq-button-icon {
// FIXME: no such tokens in design-tokens, component needs to be reviewed
width: var(--kbq-datepicker-toggle-size-width);
height: var(--kbq-datepicker-toggle-size-height);
// @TODO define --kbq-datepicker-toggle-size-* in design-tokens; fallback matches the icon-button control size meanwhile
width: var(--kbq-datepicker-toggle-size-width, var(--kbq-size-3xl));
height: var(--kbq-datepicker-toggle-size-height, var(--kbq-size-3xl));
margin-left: 2px;
}

Expand Down
1 change: 1 addition & 0 deletions packages/components/file-upload/file-upload-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
--kbq-file-upload-multiple-states-error-upload-icon-color: var(--kbq-icon-error);
--kbq-file-upload-multiple-states-error-dropzone-icon-color: var(--kbq-icon-error);
--kbq-file-upload-multiple-states-error-left-icon-color: var(--kbq-icon-error);
--kbq-file-upload-multiple-states-error-icon-button-color: var(--kbq-icon-error);
--kbq-file-upload-multiple-states-error-text-block-color: var(--kbq-foreground-error);
--kbq-file-upload-multiple-states-disabled-container-border: var(--kbq-states-line-disabled);
--kbq-file-upload-multiple-states-disabled-container-background: var(--kbq-states-background-disabled);
Expand Down
Binary file modified packages/components/link/__screenshots__/01-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/components/link/__screenshots__/01-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/components/link/link-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
/* @TODO (#DS-3002) */
--kbq-link-state-visited-border-bottom: var(--kbq-line-visited-fade, var(--kbq-line-visited));
--kbq-link-state-visited-hover-text: var(--kbq-states-foreground-visited-hover);
--kbq-link-state-visited-hover-border-bottomm: var(--kbq-line-visited-fade, var(--kbq-line-visited));
--kbq-link-state-visited-hover-border-bottom: var(--kbq-line-visited-fade, var(--kbq-line-visited));
--kbq-link-state-visited-active-text: var(--kbq-states-foreground-visited-active);
--kbq-link-state-visited-active-border-bottomm: var(--kbq-line-visited-fade, var(--kbq-line-visited));
--kbq-link-state-visited-active-border-bottom: var(--kbq-line-visited-fade, var(--kbq-line-visited));
--kbq-link-state-hover-text: var(--kbq-states-foreground-theme-hover);
--kbq-link-state-hover-border-bottom: var(--kbq-line-theme-fade);
--kbq-link-state-active-text: var(--kbq-states-foreground-theme-active);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--kbq-loader-overlay-size-big-overlay-padding-horizontal: var(--kbq-size-3xl);
--kbq-loader-overlay-size-big-loader-margin-bottom: var(--kbq-size-xxl);
--kbq-loader-overlay-size-big-content-content-gap-vertical: var(--kbq-size-l);
--kbq-loader-overlay-size-normal-overlay-padding-horizontal: var(--kbq-sizeа-3xl);
--kbq-loader-overlay-size-normal-overlay-padding-horizontal: var(--kbq-size-3xl);
--kbq-loader-overlay-size-normal-loader-margin-bottom: var(--kbq-size-xxl);
--kbq-loader-overlay-size-normal-content-content-gap-vertical: var(--kbq-size-xxs);
--kbq-loader-overlay-size-compact-overlay-padding-horizontal: var(--kbq-size-3xl);
Expand Down
12 changes: 6 additions & 6 deletions packages/components/modal/_modal-animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ $animation-duration-base: 0.3s;
@mixin zoom-motion($className, $keyframeName, $duration: $animation-duration-base) {
@include _make-motion($className, $keyframeName, $duration);

.#{className}-enter,
.#{className}-appear {
.#{$className}-enter,
.#{$className}-appear {
transform: translate(0, -25%);
animation-timing-function: $ease-out-circ;
}

.#{className}-leave {
.#{$className}-leave {
transform: translate(0, 0);
animation-timing-function: $ease-in-out-circ;
}
Expand All @@ -55,13 +55,13 @@ $animation-duration-base: 0.3s;
@mixin fade-motion($className, $keyframeName) {
@include _make-motion($className, $keyframeName);

.#{className}-enter,
.#{className}-appear {
.#{$className}-enter,
.#{$className}-appear {
opacity: 0;
animation-timing-function: ease-out;
}

.#{className}-leave {
.#{$className}-leave {
animation-timing-function: ease-out;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
display: none;
}

&:hover .kbq-notification-center-sub-header__button {
&:hover .kbq-notification-center-sub-header__button,
&:focus-within .kbq-notification-center-sub-header__button {
display: flex;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
margin-left: var(--kbq-size-m);
margin-right: var(--kbq-size-m);

&:hover {
&:hover,
&:focus-within {
& .kbq-notification-item-time {
visibility: hidden;
}
Expand Down
4 changes: 4 additions & 0 deletions packages/components/progress-bar/progress-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@

&.kbq-progress-bar_indeterminate .kbq-progress-bar__line {
animation: kbq-progress-bar-indeterminate 2.1s timing.$ease-in-out-quad infinite;

@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

.kbq-progress-spinner__circle {
fill: none;
stroke: black;
stroke: var(--stroke, var(--kbq-progress-spinner-circle-background));
stroke-dasharray: 295%;
stroke-width: 13%;
transition: stroke-dashoffset 0.3s;
Expand Down Expand Up @@ -65,6 +65,10 @@
.kbq-progress-spinner_indeterminate .kbq-progress-spinner__inner {
animation: kbq-progress-spinner-indeterminate 1.5s timing.$ease-in-out-quad infinite;

@media (prefers-reduced-motion: reduce) {
animation: none;
}

// TODO: rework this place
.kbq-progress-spinner__circle {
stroke-dashoffset: 80%;
Expand Down
4 changes: 4 additions & 0 deletions packages/components/skeleton/skeleton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@
var(--kbq-skeleton-animation-wave-end) 100%
);
animation: wave var(--kbq-skeleton-animation-duration) ease-in var(--kbq-skeleton-animation-delay) infinite;

@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
}
Binary file modified packages/components/split-button/__screenshots__/01-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/components/split-button/__screenshots__/02-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/components/split-button/__screenshots__/03-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/components/split-button/__screenshots__/03-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/components/split-button/_split-button-theme.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@mixin kbq-split-button-theme() {
.kbq-split-button {
&:hover:has(.kbq-button_transparent) {
background: var(--kbq-states-background-transparent-hover, rgba(108, 115, 147, 0.08));
background: var(--kbq-states-background-transparent-hover);
}

& .kbq-split-button_item {
Expand Down Expand Up @@ -102,7 +102,7 @@
}

& .kbq-split-button_second:before {
background: rgba(138, 143, 168, 0.6);
background: var(--kbq-states-line-disabled);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/components/splitter/_splitter-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

&:hover,
&.kbq-gutter_dragged {
background-color: rgba(106, 115, 150, 0.08);
background-color: var(--kbq-states-background-transparent-hover);
}

&.kbq-gutter_vertical {
Expand All @@ -21,6 +21,6 @@
}

.kbq-gutter-ghost {
background: rgba(106, 115, 150, 0.16);
background: var(--kbq-states-background-transparent-active);
}
}
8 changes: 0 additions & 8 deletions packages/components/time-range/time-range.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@
flex-direction: column;
gap: var(--kbq-size-s);

.kbq-time-range-editor__predefined {
column-count: 2;

.kbq-time-range-editor__predefined-option {
display: block;
}
}

.kbq-time-range-editor__date-time {
display: flex;
flex-direction: row;
Expand Down
4 changes: 2 additions & 2 deletions packages/components/timepicker/timepicker.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@use '../core/styles/common/tokens' as *;

.kbq-timepicker {
// FIXME: default token doesn't exist
padding-right: var(--kbq-timepicker-size-padding-right);
// @TODO define --kbq-timepicker-size-padding-right in design-tokens; fallback keeps spacing meanwhile
padding-right: var(--kbq-timepicker-size-padding-right, var(--kbq-size-s));
}

.kbq-form-field-type-timepicker {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tree-select/_tree-select-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
&.kbq-control_has-validate-directive.ng-invalid,
// Invalid by control `ErrorStateMatcher`
&.kbq-invalid {
color: var(--kbq-error-default);
color: var(--kbq-foreground-error);

.kbq-select__placeholder {
color: var(--kbq-form-field-states-error-placeholder);
Expand Down
Binary file modified packages/components/tree/__screenshots__/02-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/components/tree/__screenshots__/02-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/components/tree/_tree-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
}

.kbq-tree-option-caption {
.kbq-option-caption {
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
}
}
1 change: 1 addition & 0 deletions packages/components/tree/toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
flex-shrink: 0;

height: 100%;

// FIXME: default token doesn't exist
padding-left: var(--kbq-tree-size-toggle-padding);
padding-right: var(--kbq-tree-size-toggle-padding);
Expand Down
Loading