Skip to content

Commit

Permalink
fix(calendar): fix button color
Browse files Browse the repository at this point in the history
  • Loading branch information
adenvt committed Jul 1, 2022
1 parent ab556cf commit 589b099
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 36 deletions.
24 changes: 17 additions & 7 deletions components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="calendar__nav">
<Button
data-testid="calendar-prev"
variant="outline"
variant="solid"
icon
size="sm"
:disabled="!canPrev"
Expand All @@ -19,7 +19,7 @@
<Button
data-testid="calendar-title"
class="calendar__nav-title"
variant="outline"
variant="solid"
size="sm"
:readonly="disabled || readonly"
@click="changeMode(1)">
Expand All @@ -28,7 +28,7 @@

<Button
data-testid="calendar-next"
variant="outline"
variant="solid"
icon
size="sm"
:readonly="disabled || readonly"
Expand All @@ -50,7 +50,7 @@
v-for="(item, i) in items"
:key="i">
<Button
variant="outline"
variant="solid"
icon
data-testid="calendar-item"
:readonly="item.readonly || disabled || readonly"
Expand Down Expand Up @@ -258,15 +258,25 @@ export default defineComponent({
}
}
.btn--outline {
@apply border-0 justify-center;
.btn--solid {
@apply border-0 justify-center bg-transparent text-body-100;
&:hover,
&:focus,
&:active {
@apply text-white;
}
&[readonly] {
@apply pointer-events-none;
}
&[active="true"]:not(:hover) {
&[active="true"] {
@apply bg-primary-100 text-white;
&:active {
@apply bg-primary-focused;
}
}
}
Expand Down
29 changes: 0 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5831,35 +5831,6 @@ __metadata:
languageName: node
linkType: hard

"vite@npm:^2.9.12":
version: 2.9.13
resolution: "vite@npm:2.9.13"
dependencies:
esbuild: ^0.14.27
fsevents: ~2.3.2
postcss: ^8.4.13
resolve: ^1.22.0
rollup: ^2.59.0
peerDependencies:
less: "*"
sass: "*"
stylus: "*"
dependenciesMeta:
fsevents:
optional: true
peerDependenciesMeta:
less:
optional: true
sass:
optional: true
stylus:
optional: true
bin:
vite: bin/vite.js
checksum: a5e501b920a448c352e9b3836019dea56c523535f8e8540160708c2e164d84da6655ae39abbba1e2888092f5c6cd03dd06279852422359b51be601914645f49f
languageName: node
linkType: hard

"vite@npm:^2.9.7":
version: 2.9.8
resolution: "vite@npm:2.9.8"
Expand Down

0 comments on commit 589b099

Please sign in to comment.