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:
@@ -26,11 +26,11 @@ export function Modal({ open, onClose, title, children, footer, width = 'md' }:
|
||||
return (
|
||||
<div className="fixed inset-0 z-50 flex items-center justify-center p-4" role="dialog" aria-modal="true">
|
||||
<div className="absolute inset-0 bg-gray-900/50" onClick={onClose} />
|
||||
<div className={`relative w-full ${maxW} bg-white rounded-2xl shadow-2xl`}>
|
||||
<div className="flex items-center justify-between px-6 py-4 border-b border-gray-100">
|
||||
<div className={`relative w-full ${maxW} bg-surface shadow-lg`}>
|
||||
<div className="flex items-center justify-between px-6 py-4 border-b border-divider">
|
||||
<h2 className="text-sm font-semibold text-gray-900">{title}</h2>
|
||||
<button onClick={onClose} aria-label="Close"
|
||||
className="text-gray-400 hover:text-gray-600 p-1 rounded-lg hover:bg-gray-100 transition-colors cursor-pointer">
|
||||
className="text-gray-400 hover:text-gray-600 p-1 hover:bg-gray-100 transition-colors cursor-pointer">
|
||||
<svg className="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2.5}>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M6 18 18 6M6 6l12 12" />
|
||||
</svg>
|
||||
@@ -38,7 +38,7 @@ export function Modal({ open, onClose, title, children, footer, width = 'md' }:
|
||||
</div>
|
||||
<div className="px-6 py-5">{children}</div>
|
||||
{footer && (
|
||||
<div className="px-6 py-4 border-t border-gray-100 flex justify-end gap-2">
|
||||
<div className="px-6 py-4 border-t border-divider flex justify-end gap-2">
|
||||
{footer}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user