apps
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
UiPath logo, featuring letters U and I in white
Apps 用户指南
Automation CloudAutomation Cloud Public SectorAutomation Suite
Last updated 2024年11月15日

Using certain control types for building accessible apps

页面标题和标签

  • Add titles to the pages in your app. In addition, give your whole app a name, so that the app can be reliably interpreted by user agents such as assistive technologies. For example, screen readers leverage the page title as a descriptor, and the browser uses the app title in the browser tab. You can add accessible titles using the Page Name and App Name properties in the Designer panel.

  • Use the Accessible label, which is a VB property of the Button and Custom HTML controls in Apps. You can find this label in the Accessibility area, in the General tab of the Properties panel. The screen reader uses the Accessible label as a descriptor.

  • The Accessible label is an expressionable property which you can bind to other properties in your app. To do this, reference AccessibleLabel in the expression editor of a control.

输入控件

  • Do not use a separate Label control to name an existing input control. Instead, use the Label and Hint text properties available to the input control. These act as accessible names in your app.

  • If the input control has no text properties attached to it, use the Tooltip field, which the control uses as the accessible name.

  • To enable accessible click events for a control, and make it accessible via keyboard navigation, use the Button control instead of Label or Header.

“显示”和“图标”控件

  • Use the dedicated List control for lists of items instead of the Container or Label controls.

  • Use the dedicated Header control for headings instead of the Label control. The Header control markup contains accessible attributes.

  • 预设样式和 Aria-Levels 的默认预定义映射如下所示:

headline1 : Level 1 
headline2 : Level 2 
headline3 : Level 3 
LargeText : Level 4 
NormalText : Level 5 
SmallText : Level 6headline1 : Level 1 
headline2 : Level 2 
headline3 : Level 3 
LargeText : Level 4 
NormalText : Level 5 
SmallText : Level 6
  • If you manually update or customize any of the styles from the Properties panel, the aria-level is set based on the font size as follows:

>= 32px = Level 1 
>= 24px = Level 2 
>= 18px = Level 3 
>= 16px = Level 4 
>= 14px = Level 5 
< 14px = Level 6>= 32px = Level 1 
>= 24px = Level 2 
>= 18px = Level 3 
>= 16px = Level 4 
>= 14px = Level 5 
< 14px = Level 6
  • For Icon and Image controls, the Tooltip property acts as the accessible name.

容器控件

When the Container Layout control is used, the focus order for any containers inside of it depends on the container position in the Project Explorer panel. The default pre-defined order is always considered the correct one.

If you add any new containers, or change the position of a container within the container hierarchy, the focus order changes. In this scenario, you should rearrange the position of the containers according to the order of focus intended for your app.

Custom controls

You can also use the Custom HTML control to achieve custom functionalities in your app. The Custom HTML control supports the Accessible label. Using this label ensures accessibility support in your custom control.

Use Custom HTML for the following functionalities:

  • Hyperlinks.

  • Event handlers.

  • 进度条。

  • 包含自定义数据的表格。

  • 五星级的评分系统。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。