Skip to content

Commit dd31ab5

Browse files
committed
release(icon-list): v0.2.3
1 parent 67889d0 commit dd31ab5

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

index.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
},
128128
"icon-list": {
129129
"react": true,
130-
"version": "0.2.2",
130+
"version": "0.2.3",
131131
"style": true,
132132
"icon": false,
133133
"test": true,

src/command-palette/style.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
display: none;
5252
}
5353

54-
$themes: 'light', 'dark';
55-
@each $theme in $themes {
54+
@each $theme in ('light', 'dark') {
5655
.theme-#{$theme} {
5756
.body {
5857
@include mixin.theme-rule(background-color, color-bg-container, $theme);

src/icon-list/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "icon-list",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Show list of icons and their names",
55
"luna": {
66
"react": true

src/icon-list/style.scss

+11-17
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@
3535
aspect-ratio: 1;
3636
box-sizing: border-box;
3737
flex-direction: column;
38-
&.selected {
39-
.icon {
40-
background-color: #{theme.$color-border};
41-
}
42-
.name {
43-
background-color: #{theme.$color-primary};
44-
color: theme.$color-white;
45-
}
46-
}
4738
}
4839

4940
.icon {
@@ -72,14 +63,17 @@
7263
font-size: #{theme.$font-size-s-m}px;
7364
}
7465

75-
.theme-dark {
76-
.item {
77-
&.selected {
78-
.icon {
79-
background-color: #{theme.$color-border-dark};
80-
}
81-
.name {
82-
background-color: #{theme.$color-primary-dark};
66+
@each $theme in ('light', 'dark') {
67+
.theme-#{$theme} {
68+
.item {
69+
&.selected {
70+
.icon {
71+
@include mixin.theme-rule(background-color, color-border, $theme);
72+
}
73+
.name {
74+
@include mixin.theme-rule(background-color, color-primary, $theme);
75+
@include mixin.theme-rule(color, color-white, $theme);
76+
}
8377
}
8478
}
8579
}

0 commit comments

Comments
 (0)