Browse Source

Use default text colours for the missing secret hint and chip label to meet the WCAG AA contrast

pull/16849/head^2
Vladyslav_Prykhodko 4 hours ago
parent
commit
df74204128
  1. 2
      ui-ngx/src/app/shared/components/secret-storage/secret-key-input.component.html
  2. 4
      ui-ngx/src/app/shared/components/secret-storage/secret-key-input.component.scss

2
ui-ngx/src/app/shared/components/secret-storage/secret-key-input.component.html

@ -41,7 +41,7 @@
</button>
}
@if (missingSecretName) {
<mat-hint class="secret-missing-hint">{{ 'secret-storage.secret-not-found' | translate: {name: missingSecretName} }}</mat-hint>
<mat-hint>{{ 'secret-storage.secret-not-found' | translate: {name: missingSecretName} }}</mat-hint>
} @else {
<mat-hint innerHTML="{{ hint }}"></mat-hint>
}

4
ui-ngx/src/app/shared/components/secret-storage/secret-key-input.component.scss

@ -1,9 +1,6 @@
// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
// SPDX-License-Identifier: BUSL-1.1
:host {
.secret-missing-hint {
color: #FF5722;
}
.secret-warning-btn {
--mat-icon-button-icon-color: #FF5722;
--mat-icon-button-disabled-icon-color: #FF5722;
@ -19,7 +16,6 @@
--mat-chip-with-icon-icon-color: rgba(0, 0, 0, 0.38);
&.secret-chip-missing {
--mat-chip-elevated-container-color: #FFF3E0;
--mat-chip-label-text-color: #E64A19;
--mat-chip-with-icon-icon-color: #FF5722;
--mat-chip-outline-color: #FF5722;
--mat-chip-outline-width: 1px;

Loading…
Cancel
Save