Giter VIP home page Giter VIP logo

Comments (3)

mfrfinbox avatar mfrfinbox commented on June 12, 2024 1

I've update the repro scenario and added the debug output, additionally here's a picture of the issue;

CleanShot 2024-05-02 at 10 31 17

As we can see in the debug output since accesible attribute is not present it will not find the button (and all other elements that have accesibility role and not accesible attribute out of the box)

I hipe that makes sence and please let me know if you need more info

from tamagui.

mdjastrzebski avatar mdjastrzebski commented on June 12, 2024

@mfrfinbox the repro scenario is missing <MyComponent /> code which is needed to understand the issue. It would be good to also include screen.debug() output to show what Tamagui renders in terms of host components & their props.

Issue TLDR: Tamagui in some cases sets accessibilityRole without setting accessible prop on View:

<View accessibilityRole="radiogroup">

Full output: callstack/react-native-testing-library#1566 (comment)

From my experiments, and hence how RNTL handles accessibility role, having accessibilityRole on a View without accessible prop, does not make Accessibility Inspector/screen reader be aware of such role.

from tamagui.

mfrfinbox avatar mfrfinbox commented on June 12, 2024

Adding accesible will make it work but I believe this should be there out of the box:

CleanShot 2024-05-02 at 10 38 30

from tamagui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.