fix: react-doctor exhaustive-deps 3→0, prefer-use-effect-event 3→0 (useEffectEvent for modal cancel handlers), role-supports-aria-props 3→0 (aria-pressed/aria-current on buttons)
This commit is contained in:
@@ -152,7 +152,7 @@ export default function BrandSelector({
|
||||
<li>
|
||||
<button
|
||||
type="button"
|
||||
aria-selected={!activeBrand}
|
||||
aria-pressed={!activeBrand}
|
||||
onClick={() => selectBrand(null)}
|
||||
className="w-full flex items-center gap-2 px-3 py-2 text-xs text-left transition-colors hover:bg-white/5"
|
||||
style={{
|
||||
@@ -185,7 +185,7 @@ export default function BrandSelector({
|
||||
<li key={b.id}>
|
||||
<button
|
||||
type="button"
|
||||
aria-selected={isActive}
|
||||
aria-pressed={isActive}
|
||||
onClick={() => selectBrand(b.id)}
|
||||
className="w-full flex items-center gap-2 px-3 py-2 text-xs text-left transition-colors hover:bg-white/5"
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user