Skip to content

Commit

Permalink
fix(focus): grid, treelist, and calendar focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
PreslavKozovski authored and joneff committed Sep 6, 2018
1 parent 4aae04d commit 01eb3f6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/default/scss/calendar/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $calendar-weekend-bg: darken($widget-bg, 2.35) !default;
$calendar-week-number-bg: darken( $widget-bg, 5 ) !default;
$calendar-week-number-text: $node-text !default;
$calendar-week-day-text: $header-text !default;
$node-hovered-selected-bg: blend-multiply( $list-item-selected-bg, $list-item-hovered-bg ) !default;
$calendar-range-selection: lighten($accent, 23%) !default;

// Styling of today date
Expand Down Expand Up @@ -168,7 +169,7 @@ $calendar-selected-focus-shadow: $calendar-focus-shadow !default;
}

&.k-state-hover .k-link {
background-color: blend-multiply( $list-item-selected-bg, $list-item-hovered-bg );
background-color: $node-hovered-selected-bg;
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions packages/material/scss/calendar/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ $calendar-range-selection: lighten($accent, 43%) !default;
.k-calendar-weekdays {
text-transform: uppercase;
}

.k-calendar {

.k-state-focused .k-link {
@include appearance( hovered-node );
}
}
}
10 changes: 9 additions & 1 deletion packages/material/scss/grid/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ $grid-chrome-text: rgba(0, 0, 0, .54) !default;
$grid-sorted-bg: rgba(0, 0, 0, .04) !default;
$grid-text: rgba(0, 0, 0, .87) !default;
$grid-sorting-indicator-text: $grid-chrome-text !default;
$grid-selected-bg: rgba(0, 0, 0, .07) !default;
$grid-selected-bg: rgba(0, 0, 0, .04) !default;
$grid-hovered-bg: rgba(0, 0, 0, .07) !default;
$grid-grouping-row-bg: transparent !default;
$grid-selected-text: #000 !default;
$grid-selected-cell-text: $grid-selected-text !default;
Expand Down Expand Up @@ -31,6 +32,13 @@ $grid-filter-cell-padding-y: $grid-cell-padding-y !default;
background-color: $grid-edit-cell-bg;
box-shadow: $grid-edit-cell-shadow;
}

// Hover, Focused state
tbody tr:hover,
td.k-state-focused,
th.k-state-focused {
background-color: $grid-hovered-bg;
}
}

.k-grid-header {
Expand Down

0 comments on commit 01eb3f6

Please sign in to comment.