mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 09:35:37 -05:00
Adding aria-live label support for input boxes (#6862)
* Adding aria-live support for InputBoxes * Adding aria-live setting for DacFx wizard InputBox control * Dud commit to unstick Github CI
This commit is contained in:
@@ -204,6 +204,9 @@ export default class InputBoxComponent extends ComponentBase implements ICompone
|
||||
}
|
||||
}
|
||||
|
||||
if (this.ariaLive) {
|
||||
input.ariaLive = this.ariaLive;
|
||||
}
|
||||
|
||||
input.inputElement.required = this.required;
|
||||
}
|
||||
@@ -226,6 +229,10 @@ export default class InputBoxComponent extends ComponentBase implements ICompone
|
||||
this.setPropertyFromUI<azdata.InputBoxProperties, string>((props, value) => props.ariaLabel = value, newValue);
|
||||
}
|
||||
|
||||
public get ariaLive() {
|
||||
return this.getPropertyOrDefault<azdata.InputBoxProperties, string>((props) => props.ariaLive, '');
|
||||
}
|
||||
|
||||
public get placeHolder(): string {
|
||||
return this.getPropertyOrDefault<azdata.InputBoxProperties, string>((props) => props.placeHolder, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user