Browse Source
Use semantic HTML approach for different link categories: - **Action links** (with onClick/trigger actions): replace `<a href="#">` with `<Button type="link">` — semantically correct for non-navigation interactions (settings actions, edit/delete triggers, expand/collapse) - **Navigation links** (user names, team members): replace `<a href="#">` with umi `<Link to="/" prefetch>` for proper client-side routing - **Placeholder links** (demo data): replace `href="#"` with valid href using `item.href` from data or `/` as fallback - **Wrapped button**: remove invalid `<a href="#">` wrapper around `<Button>` Also fix react-doctor/no-prevent-default by removing preventDefault calls from replaced anchor elements, and add eslint-disable comments for react-doctor/rendering-hydration-mismatch-time false positives where crypto.randomUUID() is only called in event handlers. Closes #11784 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>pull/11785/head
22 changed files with 109 additions and 122 deletions
Loading…
Reference in new issue