Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 2cf1208

Browse files
Googlernshahan
authored andcommitted
Refactor material list styles
PiperOrigin-RevId: 259973461
1 parent 3fd5bcc commit 2cf1208

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
@import 'package:angular_components/material_list/_common_constants';
6+
@import 'package:angular_components/css/material/material';
7+
8+
$list-item-button-hover-background: $mat-grey-200;

angular_components/lib/material_list/_mixins.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
@import 'size';
5+
@import 'package:angular_components/material_list/constants';
66
@import 'package:angular_components/css/material/material';
77

88
@mixin list-item-base {
@@ -61,7 +61,7 @@
6161
&:hover,
6262
&:focus,
6363
&.active {
64-
background: $mat-grey-200;
64+
background: $list-item-button-hover-background;
6565
}
6666

6767
&.disabled {

0 commit comments

Comments
 (0)