Add icon to show which elements in ax tree are talkback-focusable

Summary: Puts an accessibility icon next to any elements in the ax tree that may be focused on when talkback is running to show that they are "accessibility-focusable". When any sidebar values are changed, the icon will show up/disappear accordingly.

Reviewed By: danielbuechele

Differential Revision: D9171781

fbshipit-source-id: f3b42624988aaef22040ac3325d745a12f0622db
This commit is contained in:
Sara Valderrama
2018-08-07 09:35:14 -07:00
committed by Facebook Github Bot
parent 1fb2c4ee76
commit c07d8c14a4
9 changed files with 51 additions and 9 deletions

View File

@@ -331,6 +331,8 @@ class ElementsRow extends PureComponent<ElementsRowProps, ElementsRowState> {
return <DecorationImage src="icons/componentkit-logo.png" />;
case 'componentscript':
return <DecorationImage src="icons/componentscript-logo.png" />;
case 'accessibility':
return <DecorationImage src="icons/accessibility.png" />;
default:
return null;
}