mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 20:15:52 +01:00
High contrast mode findings (#1892)
Fixes most of the flaws in high contrast mode.
This commit is contained in:
@@ -102,7 +102,7 @@ const FileInput: FC<Props> = ({
|
||||
{file?.name ? (
|
||||
<span className="file-name">{file?.name}</span>
|
||||
) : (
|
||||
<span className="file-name has-text-weight-light has-text-grey-light">
|
||||
<span className="file-name has-text-weight-light has-text-secondary">
|
||||
{filenamePlaceholder || t("fileInput.noFileChosen")}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -60,7 +60,7 @@ const FileUpload: FC<Props> = ({ handleFile, filenamePlaceholder = "", disabled
|
||||
{file?.name ? (
|
||||
<span className="file-name">{file?.name}</span>
|
||||
) : (
|
||||
<span className="file-name has-text-weight-light has-text-grey-light ">{filenamePlaceholder}</span>
|
||||
<span className="file-name has-text-weight-light has-text-secondary">{filenamePlaceholder}</span>
|
||||
)}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -51,11 +51,11 @@ const TriStateCheckbox: FC<Props> = ({ checked, indeterminate, disabled, label,
|
||||
|
||||
let color;
|
||||
if (disabled) {
|
||||
color = "grey-light";
|
||||
color = "secondary";
|
||||
} else if (checked || indeterminate) {
|
||||
color = "link";
|
||||
} else {
|
||||
color = "black";
|
||||
color = "secondary-most";
|
||||
}
|
||||
|
||||
// We need a tabIndex to make the checkbox accessible from keyboard.
|
||||
|
||||
Reference in New Issue
Block a user