-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop: Accessibility: Add error indication on Note properties #11784
base: dev
Are you sure you want to change the base?
Conversation
@@ -37,6 +37,7 @@ interface State { | |||
formNote: FormNote; | |||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied | |||
editedValue: any; | |||
isValid: Record<string, boolean>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be typed more precisely? At the moment it looks like only the location property is supported?
In which case:
isValid: {
location: boolean;
}
@@ -191,6 +196,17 @@ class NotePropertiesDialog extends React.Component<Props, State> { | |||
borderColor: theme.dividerColor, | |||
}; | |||
|
|||
this.styles_.invalidInput = { | |||
border: '1px solid', | |||
borderColor: 'red', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should come from the theme
Related to #10795
Summary
Add visual and error information when a invalid input is set to location input on Note Properties
Images
WCAG
3.3.1 Error Identification
3.3.3 Error Suggestion
G83: Providing text descriptions to identify required fields that were not completed
ARIA21: Using Aria-Invalid to Indicate An Error Field
G85: Providing a text description when user input falls outside the required format or values
Tests
I made manual tests
Test 1 - Invalid input
Test 2 - Empty input
Test 3 - Error message is not permanent
Test 4 - Storing value