-
Notifications
You must be signed in to change notification settings - Fork 47
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
#2294 Accessibility violations fix - RadioButtons, Table Custom Buttons #2306
base: main
Are you sure you want to change the base?
#2294 Accessibility violations fix - RadioButtons, Table Custom Buttons #2306
Conversation
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
…ing role and aria-label Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
@@ -234,6 +234,8 @@ class RadiosetControl extends React.Component { | |||
orientation={this.props.control.orientation} | |||
helperText={this.props.control.helperText} | |||
readOnly={this.props.readOnly} | |||
// Provide unique aria-label for each radio button group | |||
aria-label={`Radio Button Group (${ControlUtils.getDataId(this.props.control, this.props.propertyId)})`} |
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.
Shouldn't this be translated?
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
@@ -234,6 +237,8 @@ class RadiosetControl extends React.Component { | |||
orientation={this.props.control.orientation} | |||
helperText={this.props.control.helperText} | |||
readOnly={this.props.readOnly} | |||
// Provide unique aria-label for each radio button group | |||
aria-label={`${radioBtnGroupAriaLabel} (${ControlUtils.getDataId(this.props.control, this.props.propertyId)})`} |
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.
Seems odd have the dataId in the text. Is there a reason for that?
@@ -123,6 +124,7 @@ TableButtons.propTypes = { | |||
propertyId: PropTypes.object.isRequired, | |||
customButtons: PropTypes.array.isRequired, | |||
tableState: PropTypes.string, | |||
toolbarOverflowLabel: PropTypes.string, |
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.
Why does this need to be passed in as a prop? Does this show up in the UI or is it only an aria-label?
@@ -95,6 +95,8 @@ | |||
"table.toolbar.button.delete": "Delete", | |||
"table.toolbar.button.edit": "Edit", | |||
"table.toolbar.button.cancel": "Cancel", | |||
"table.toolbar.overflow.label": "Table Toolbar Overflow", |
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.
These should be sentence case.
Fixes: #2294
Developer's Certificate of Origin 1.1