-
Notifications
You must be signed in to change notification settings - Fork 27
[jules] style: Consistent hover/focus states across all buttons #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -66,7 +66,7 @@ export const Modal: React.FC<ModalProps> = ({ isOpen, onClose, title, children, | |||||||||||||||||||
| {/* Header */} | ||||||||||||||||||||
| <div className={`p-6 flex justify-between items-center ${style === THEMES.NEOBRUTALISM ? 'border-b-2 border-black bg-neo-main text-white' : 'border-b border-white/10 bg-white/5'}`}> | ||||||||||||||||||||
| <h3 id={titleId} className={`text-2xl font-bold ${style === THEMES.NEOBRUTALISM ? 'uppercase font-mono tracking-tighter' : ''}`}>{title}</h3> | ||||||||||||||||||||
| <button type="button" onClick={onClose} className="hover:rotate-90 transition-transform duration-200" aria-label="Close modal"> | ||||||||||||||||||||
| <button type="button" onClick={onClose} className="hover:rotate-90 transition-transform duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-black dark:focus-visible:ring-white rounded-sm" aria-label="Close modal"> | ||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dark-mode override can hide close-button focus ring in Neobrutalism. Line 69 uses Suggested fix- <button type="button" onClick={onClose} className="hover:rotate-90 transition-transform duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-black dark:focus-visible:ring-white rounded-sm" aria-label="Close modal">
+ <button
+ type="button"
+ onClick={onClose}
+ className={`hover:rotate-90 transition-transform duration-200 focus:outline-none focus-visible:ring-2 rounded-sm ${
+ style === THEMES.NEOBRUTALISM ? 'focus-visible:ring-black' : 'focus-visible:ring-white'
+ }`}
+ aria-label="Close modal"
+ >📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| <X size={24} /> | ||||||||||||||||||||
| </button> | ||||||||||||||||||||
| </div> | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Password toggle focus contrast is too weak in light mode (glass theme).
The non-neobrutal branch uses white-tinted icon and ring for both modes; in light mode this can make the keyboard focus state hard to perceive.
Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents