Skip to content

Commit

Permalink
elyra-ai#2336 Accessibility Violation in Disabled Control Label (elyr…
Browse files Browse the repository at this point in the history
…a-ai#2337)

Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 authored Feb 10, 2025
1 parent d671438 commit 84f3984
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ class ControlItem extends React.Component {
let indicator;
if (this.showRequiredIndicator && this.props.control.required) {
indicator = (
<span className="properties-indicator">
<span className="properties-indicator" aria-disabled={disabled}>
{formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.LABEL_INDICATOR_REQUIRED)}
</span>
);
} else if (!this.showRequiredIndicator && !("required" in this.props.control)) {
indicator = (
<span className="properties-indicator">
<span className="properties-indicator" aria-disabled={disabled}>
{formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.LABEL_INDICATOR_OPTIONAL)}
</span>
);
}
label = (
<div className={classNames("properties-label-container", { "table-control": this.props.tableControl === true })}>
<label className="properties-control-label">{this.props.control.label.text}</label>
<label className="properties-control-label" aria-disabled={disabled}>{this.props.control.label.text}</label>
{indicator}
{tooltip}
</div>);
Expand Down

0 comments on commit 84f3984

Please sign in to comment.