1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(kube): change warning text colour to match figma styling [EE-3045] (#7582)

* update warning text colour, icon and alignment to match figma
This commit is contained in:
Matt Hook 2022-09-15 11:09:19 +12:00 committed by GitHub
parent d570aee554
commit 7accdf704c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 467 additions and 454 deletions

View file

@ -16,7 +16,7 @@ export function PasswordCheckHint({
return (
<div>
<p className="text-muted vertical-center">
<p className="text-warning vertical-center">
<Icon icon="alert-triangle" className="icon-warning" feather />
{forceChangePassword &&
'An administrator has changed your password requirements, '}

View file

@ -29,29 +29,28 @@ export function FormControl({
required,
}: PropsWithChildren<Props>) {
return (
<>
<div className={clsx('form-group', styles.container)}>
<label
htmlFor={inputId}
className={clsx(sizeClassLabel(size), 'control-label', 'text-left')}
>
{label}
<div className={clsx('form-group', styles.container)}>
<label
htmlFor={inputId}
className={clsx(sizeClassLabel(size), 'control-label', 'text-left')}
>
{label}
{required && <span className="text-danger">*</span>}
{required && <span className="text-danger">*</span>}
{tooltip && <Tooltip message={tooltip} />}
</label>
{tooltip && <Tooltip message={tooltip} />}
</label>
<div className={sizeClassChildren(size)}>{children}</div>
</div>
{errors && (
<div className="form-group">
<div className="col-md-12">
<div className={sizeClassChildren(size)}>
{children}
{errors && (
<span className="help-block">
<FormError>{errors}</FormError>
</div>
</div>
)}
</>
</span>
)}
</div>
</div>
);
}