Skip to content

Commit 699d9c9

Browse files
committed
release(tab): v0.3.3
1 parent dd31ab5 commit 699d9c9

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

index.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
},
373373
"tab": {
374374
"react": true,
375-
"version": "0.3.2",
375+
"version": "0.3.3",
376376
"style": true,
377377
"icon": false,
378378
"test": true,

src/tab/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tab",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Easy tabs",
55
"luna": {
66
"react": true

src/tab/style.scss

+17-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.tabs-container {
12-
border-bottom: 1px solid theme.$color-border;
12+
border-bottom: 1px solid;
1313
}
1414

1515
.tabs {
@@ -41,19 +41,27 @@
4141
.slider {
4242
transition: left 0.3s, width 0.3s;
4343
height: 1px;
44-
background: #1a73e8;
4544
position: absolute;
4645
bottom: 0;
4746
left: 0;
4847
}
4948

50-
.theme-dark {
51-
.tabs-container {
52-
border-color: theme.$color-border-dark;
53-
}
54-
.item {
55-
&:hover {
56-
background: theme.$color-fill-secondary-dark;
49+
@each $theme in ('light', 'dark') {
50+
.theme-#{$theme} {
51+
.tabs-container {
52+
@include mixin.theme-rule(border-color, color-border, $theme);
53+
}
54+
.item {
55+
&.luna-tab-selected {
56+
@include mixin.theme-rule(color, color-primary, $theme);
57+
}
58+
&:hover {
59+
@include mixin.theme-rule(color, color-text, $theme);
60+
@include mixin.theme-rule(background-color, color-fill-secondary, $theme);
61+
}
62+
}
63+
.slider {
64+
@include mixin.theme-rule(background-color, color-primary, $theme);
5765
}
5866
}
5967
}

0 commit comments

Comments
 (0)