Skip to content

Commit

Permalink
feat(list): update option-label styles to match design
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow authored and Juveniel committed May 2, 2023
1 parent 1ab9ec8 commit 7b57567
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bootstrap/scss/list/_variables.scss
Expand Up @@ -245,3 +245,7 @@ $kendo-list-group-item-shadow: null !default;
/// The color of the 'No Data' text.
/// @group list
$kendo-list-no-data-text: $kendo-subtle-text !default;

/// The color of the 'Option Label' text.
/// @group list
$kendo-list-option-label-text: $kendo-subtle-text !default;
4 changes: 4 additions & 0 deletions packages/classic/scss/list/_variables.scss
Expand Up @@ -245,3 +245,7 @@ $kendo-list-group-item-shadow: null !default;
/// The color of the 'No Data' text.
/// @group list
$kendo-list-no-data-text: $kendo-subtle-text !default;

/// The color of the 'Option Label' text.
/// @group list
$kendo-list-option-label-text: $kendo-subtle-text !default;
1 change: 1 addition & 0 deletions packages/default/scss/list/_layout.scss
Expand Up @@ -122,6 +122,7 @@
}
.k-list-optionlabel {
@extend .k-list-item !optional;
column-gap: 0;
}


Expand Down
6 changes: 6 additions & 0 deletions packages/default/scss/list/_theme.scss
Expand Up @@ -62,6 +62,12 @@
}
}

// Option Label
.k-list-optionlabel,
.k-list-optionlabel.k-hover,
.k-list-optionlabel:hover {
color: $kendo-list-option-label-text;
}

// List group item
.k-list-group-item {
Expand Down
4 changes: 4 additions & 0 deletions packages/default/scss/list/_variables.scss
Expand Up @@ -245,3 +245,7 @@ $kendo-list-group-item-shadow: null !default;
/// The color of the 'No Data' text.
/// @group list
$kendo-list-no-data-text: $kendo-subtle-text !default;

/// The color of the 'Option Label' text.
/// @group list
$kendo-list-option-label-text: $kendo-subtle-text !default;
1 change: 1 addition & 0 deletions packages/fluent/scss/list/_layout.scss
Expand Up @@ -125,6 +125,7 @@
}
.k-list-optionlabel {
@extend .k-list-item !optional;
column-gap: 0;
}


Expand Down
15 changes: 15 additions & 0 deletions packages/fluent/scss/list/_theme.scss
Expand Up @@ -76,6 +76,21 @@
);
}

// Option Label
.k-list-optionlabel,
.k-list-optionlabel.k-hover,
.k-list-optionlabel:hover {
@include fill(
$color: var( --kendo-list-option-label-text, #{$kendo-list-option-label-text} )
);
}

.k-list-optionlabel:disabled,
.k-list-optionlabel.k-disabled {
@include fill(
$color: var( --kendo-list-option-label-disabled-text, #{$kendo-list-option-label-disabled-text} )
)
}

// List group item
.k-list-group-item {
Expand Down
7 changes: 7 additions & 0 deletions packages/fluent/scss/list/_variables.scss
Expand Up @@ -276,3 +276,10 @@ $kendo-list-group-item-shadow: none !default;
/// The text color of the 'No Data' text.
/// @group list
$kendo-list-no-data-text: get-theme-color-var( neutral-160 ) !default;

/// The color of the 'Option Label' text.
/// @group list
$kendo-list-option-label-text: $kendo-subtle-text !default;
/// The color of the disabled 'Option Label' text.
/// @group list
$kendo-list-option-label-disabled-text: $kendo-disabled-text !default;
4 changes: 4 additions & 0 deletions packages/material/scss/list/_variables.scss
Expand Up @@ -245,3 +245,7 @@ $kendo-list-group-item-shadow: null !default;
/// The color of the 'No Data' text.
/// @group list
$kendo-list-no-data-text: $kendo-subtle-text !default;

/// The color of the 'Option Label' text.
/// @group list
$kendo-list-option-label-text: $kendo-subtle-text !default;

0 comments on commit 7b57567

Please sign in to comment.