mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fixed color contrast for error message in connect a dc window. (#18411)
* Fixed color contrast for error message in connect a dc window. * Remove color check for error message * Remove more unneeded checks Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -52,9 +52,6 @@ describe('radioOptionsGroup', function (): void {
|
|||||||
const label = radioOptionsGroup.items[0] as azdata.TextComponent;
|
const label = radioOptionsGroup.items[0] as azdata.TextComponent;
|
||||||
should(label.value).not.be.undefined();
|
should(label.value).not.be.undefined();
|
||||||
label.value!.should.deepEqual(loc.loadingClusterContextsError(loadingError));
|
label.value!.should.deepEqual(loc.loadingClusterContextsError(loadingError));
|
||||||
should(label.CSSStyles).not.be.undefined();
|
|
||||||
should(label.CSSStyles!.color).not.be.undefined();
|
|
||||||
label.CSSStyles!.color.should.equal('Red');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getters and setters', async () => {
|
describe('getters and setters', async () => {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export class RadioOptionsGroup {
|
|||||||
this.component().loadingCompletedText = this._loadingCompleteMessage;
|
this.component().loadingCompletedText = this._loadingCompleteMessage;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
const errorLabel = this._modelBuilder.text().withProps({ value: loc.loadingClusterContextsError(e), CSSStyles: { 'color': 'Red' } }).component();
|
const errorLabel = this._modelBuilder.text().withProps({ value: loc.loadingClusterContextsError(e), textType: azdata.TextType.Error }).component();
|
||||||
this._divContainer.addItem(errorLabel);
|
this._divContainer.addItem(errorLabel);
|
||||||
this.component().loadingCompletedText = this._loadingCompleteErrorMessage(e);
|
this.component().loadingCompletedText = this._loadingCompleteErrorMessage(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user