Skip to content

Commit

Permalink
fix(ui): hover effect on scope delete button (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMauroy authored Feb 4, 2025
1 parent 6cf4491 commit 95d73e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/routes/@[scope]/~/members.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ export function MemberItem(props: MemberItemProps) {
<form method="POST" class="contents">
<input type="hidden" name="userId" value={member.user.id} />
<button
class="hover:underline disabled:text-jsr-gray-300 disabled:cursor-not-allowed"
class="hover:underline disabled:text-jsr-gray-300 disabled:cursor-not-allowed hover:text-red-600 motion-safe:transition-colors"
name="action"
value="deleteMember"
disabled={props.isLastAdmin}
title={props.isLastAdmin
? "This is the last admin in this scope. Promote another member to admin before removing this one."
: "Remove user"}
>
<TrashCan class="h-4 w-4" />
<TrashCan class="h-5 w-5" />
</button>
</form>
</div>
Expand Down

0 comments on commit 95d73e2

Please sign in to comment.