Skip to content

Commit

Permalink
fix(list): use correct colors for various list parts
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Dec 9, 2021
1 parent 457c7db commit efac2c6
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/bootstrap/scss/list/_variables.scss
Expand Up @@ -13,5 +13,5 @@ $list-item-selected-text: $selected-text !default;

$list-item-focused-shadow: inset 0 0 0 3px rgba( $list-item-text, .15 ) !default;

$list-container-shadow: 0 5px 10px 0 rgba(0, 0, 0, .06) !default;
$list-container-no-data-text: rgba( $component-text, .5 ) !default;
$list-container-shadow: null !default;
$list-container-no-data-text: $subtle-text !default;
4 changes: 2 additions & 2 deletions packages/classic/scss/list/_variables.scss
Expand Up @@ -13,5 +13,5 @@ $list-item-selected-text: $selected-text !default;

$list-item-focused-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12) !default;

$list-container-shadow: 0 5px 10px 0 rgba(0, 0, 0, .06) !default;
$list-container-no-data-text: rgba( $component-text, .5 ) !default;
$list-container-shadow: null !default;
$list-container-no-data-text: $subtle-text !default;
2 changes: 1 addition & 1 deletion packages/default/scss/list/_layout.scss
Expand Up @@ -88,7 +88,7 @@

.k-list__item__group { // sass-lint:disable-line class-name-format
padding: 0 .5em;
font-size: .875em;
font-size: .75em;
position: absolute;
top: 0;
right: 0;
Expand Down
4 changes: 2 additions & 2 deletions packages/default/scss/list/_theme.scss
Expand Up @@ -9,8 +9,8 @@
}

.k-list__item__group { // sass-lint:disable-line class-name-format
color: $grouping-header-text;
background: $grouping-header-bg;
color: $component-bg;
background: $component-text;
}

.k-list__item:hover, // sass-lint:disable-line class-name-format
Expand Down
2 changes: 1 addition & 1 deletion packages/default/scss/list/_variables.scss
Expand Up @@ -14,4 +14,4 @@ $list-item-selected-text: $selected-text !default;
$list-item-focused-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12) !default;

$list-container-shadow: 0 5px 10px 0 rgba(0, 0, 0, .06) !default;
$list-container-no-data-text: rgba( $component-text, .5 ) !default;
$list-container-no-data-text: $subtle-text !default;
11 changes: 11 additions & 0 deletions packages/material/scss/list/_layout.scss
Expand Up @@ -3,6 +3,7 @@
@include exports( "list/layout/material" ) {

.k-list-container {
line-height: 1.5;

.k-button {
box-shadow: none;
Expand All @@ -14,4 +15,14 @@

}

.k-list {
line-height: 1.5;
}

.k-list__item, // sass-lint:disable-line class-name-format
.k-list__group-header { // sass-lint:disable-line class-name-format
min-height: auto;
line-height: inherit;
}

}
8 changes: 4 additions & 4 deletions packages/material/scss/list/_variables.scss
@@ -1,6 +1,6 @@
// List
$list-item-padding-x: $padding-x * 1.5 !default;
$list-item-padding-y: $padding-y / 2 !default;
$list-item-padding-x: map-get( $spacing, 4 ) !default;
$list-item-padding-y: map-get( $spacing, 1 ) !default;

$list-item-bg: null !default;
$list-item-text: $component-text !default;
Expand All @@ -13,5 +13,5 @@ $list-item-selected-text: $secondary !default;

$list-item-focused-shadow: null !default;

$list-container-shadow: 0 5px 10px 0 rgba(0, 0, 0, .06) !default;
$list-container-no-data-text: rgba( $body-text, .5 ) !default;
$list-container-shadow: null !default;
$list-container-no-data-text: $subtle-text !default;

0 comments on commit efac2c6

Please sign in to comment.