Skip to content

Commit 6361620

Browse files
committed
Add styles for disabled non-pending ModerationStatusSelect
1 parent 28bbec2 commit 6361620

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/ModerationStatusSelect.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export default function ModerationStatusSelect({
5454
'!bg-green-light !text-green-dark': selected === 'APPROVED',
5555
'!bg-yellow-light !text-yellow-dark': selected === 'SPAM',
5656
'!bg-red-light !text-red-dark': selected === 'DENIED',
57+
// The styles above override default select disabled styles, so let's
58+
// add reduced opacity to those
59+
'disabled:opacity-75': selected !== 'PENDING',
5760
},
5861
)}
5962
aria-label="Moderation status"

0 commit comments

Comments
 (0)