refactor(design): drop rounded classes, swap bg-white and gray borders for tokens
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -39,28 +39,28 @@ export function VerifyForm({ capaId }: Props) {
|
||||
}
|
||||
|
||||
return (
|
||||
<form onSubmit={handleSubmit} className="border border-gray-200 rounded-xl p-5 space-y-4 bg-purple-50">
|
||||
<form onSubmit={handleSubmit} className="border border-divider p-5 space-y-4 bg-purple-50">
|
||||
<h3 className="text-sm font-semibold text-gray-800">HSE Verification</h3>
|
||||
<div className="flex gap-3">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setVerdict('verified')}
|
||||
className={`flex-1 py-2 rounded-lg text-sm font-medium border ${
|
||||
verdict === 'verified'
|
||||
? 'bg-green-600 text-white border-green-600'
|
||||
: 'bg-white text-gray-700 border-gray-300 hover:border-green-500'
|
||||
}`}
|
||||
className={`flex-1 py-2 text-sm font-medium border ${
|
||||
verdict === 'verified'
|
||||
? 'bg-green-600 text-white border-green-600'
|
||||
: 'bg-surface text-gray-700 border-divider hover:border-green-500'
|
||||
}`}
|
||||
>
|
||||
Verified — Effective
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setVerdict('reopened')}
|
||||
className={`flex-1 py-2 rounded-lg text-sm font-medium border ${
|
||||
verdict === 'reopened'
|
||||
? 'bg-orange-600 text-white border-orange-600'
|
||||
: 'bg-white text-gray-700 border-gray-300 hover:border-orange-500'
|
||||
}`}
|
||||
className={`flex-1 py-2 text-sm font-medium border ${
|
||||
verdict === 'reopened'
|
||||
? 'bg-orange-600 text-white border-orange-600'
|
||||
: 'bg-surface text-gray-700 border-divider hover:border-orange-500'
|
||||
}`}
|
||||
>
|
||||
Reopen — Ineffective
|
||||
</button>
|
||||
@@ -72,7 +72,7 @@ export function VerifyForm({ capaId }: Props) {
|
||||
value={reopenReason}
|
||||
onChange={e => setReopenReason(e.target.value)}
|
||||
rows={2} required
|
||||
className="w-full rounded-lg border border-gray-300 px-3 py-2 text-sm"
|
||||
className="w-full border border-divider px-3 py-2 text-sm"
|
||||
placeholder="Describe why the corrective action did not resolve the root cause…"
|
||||
/>
|
||||
</div>
|
||||
@@ -80,7 +80,7 @@ export function VerifyForm({ capaId }: Props) {
|
||||
{error && <p className="text-sm text-red-600">{error}</p>}
|
||||
{verdict && (
|
||||
<button type="submit" disabled={saving}
|
||||
className="w-full bg-gray-900 text-white rounded-lg py-2 text-sm font-semibold disabled:opacity-50">
|
||||
className="w-full bg-gray-900 text-white py-2 text-sm font-semibold disabled:opacity-50">
|
||||
{saving ? 'Saving…' : 'Submit Verification'}
|
||||
</button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user