Skip to content

Commit

Permalink
fixed button styling for disabled button
Browse files Browse the repository at this point in the history
  • Loading branch information
mahathu committed Feb 25, 2022
1 parent d9592d4 commit cd5a668
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/src/components/Event.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<div class="font-light opacity-80">{event.name} ({event.state}) {event.date}</div>
<div class="text-xl tracking-tight">{event.start_time} - {event.end_time}</div>
</div>
<a href='{event.link}'><button class="px-2 py-2 text-white transition-all duration-100 bg-green-600 border-none shadow
active:bg-green-700
hover:bg-green-500 hover:shadow-none"
<a href='{event.link}'><button class="px-1 py-1 text-white transition-all duration-100 bg-green-600 border-2 border-green-600 shadow
active:bg-green-700 active:border-green-700
hover:bg-green-500 hover:border-green-500 hover:shadow-none
disabled:border-gray-200 disabled:border-2 disabled:bg-transparent disabled:shadow-none"
disabled={event.state!='available'}>Book Now</button></a>
</div>
</div>

0 comments on commit cd5a668

Please sign in to comment.