UiaNameShouldNotContainControlType
Text
Element's Name ({0}) should not contain the text of the ControlType ({1})
Type
Warning
Description
The name of an element incorporates its UIA control type. For example, this warning can occur if the UIA Name property for an element with the Button control type is set to "My Button".
This issue causes problems for people who rely on a screen-reader and keyboard for navigation because the control type will be read twice, or it may be unpronounceable or non-intuitive for users.
Possible causes
- The element or its parent has an incorrectly assigned name or label.
- The element or its parent has a default name that has not been revised to a friendly name. For example, button1.
- A developer is not aware that screen readers read names and control types.
Related topics
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for