Skip to content

ui: FocusGuard passes importantForAccessibility to the DOM — React warns on every web page #993

Closed

Description

@thinkclay

Finding

packages/ui/src/accessibility/FocusGuard.tsx:64 renders a View with importantForAccessibility="no" and only ever renders on web (Platform.OS !== 'web' returns null above it). react-native-web has no mapping for that prop, so it reaches the DOM and React logs on every page that mounts a focus guard:

React does not recognize the `importantForAccessibility` prop on a DOM element.

Seen in the dev toast at 390 on /assessments and /dashboard while verifying #992; reproduces headless with a console listener on any authenticated page.

Change

Drop the prop in FocusGuard — the guard is already accessible={false} with tabIndex: 0, which is the web form of the same intent. Chart/BarChart.tsx:102 carries the same prop on a View that does render on web; guard it with Platform.OS !== 'web' or use aria-hidden.

Acceptance

  • No does not recognize warning on /dashboard at 390 and 1440 (headless console listener).
  • Scaffald/ui PR + pointer bump.

Activity

  1. added
    bug
    agent-ready
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Frontendagent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions