Skip to content

Accessibility acts differently depending on whether a subnode has a cornerRadius #1797

@rcancro

Description

@rcancro

Hello,

I'm seeing inconsistent accessibility results depending on whether or not a button's subnode has a cornerRadius set or not!

I've created a sample app here with a readme file to help explain the situation.
https://github.com/rcancro/TextureAccessibility

The gist of the findings is that when I try to create a badged button, the badge gets the focus off the screen reader:

texture2

UNLESS the badge has no corner radius:
texture3

I've tried setting the cornerRadius in the most un-texturey way I can (self.button.view.layer.cornerRadius = 10), but it still causes the screen reader to focus on the badge! Making the badge layer backed is a work around, but I'd like to figure out what is really going on.

Thanks!!!
Ricky

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions