1
0
forked from cockpit/cockpit

- css-overrides.patch: css overrides for better theming support

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=92
This commit is contained in:
Adam Majer 2022-06-17 10:52:33 +00:00 committed by Git OBS Bridge
parent 23b9028c58
commit cba03bcf08
2 changed files with 20 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 17 10:09:09 UTC 2022 - Adam Majer <adam.majer@suse.de>
- css-overrides.patch: css overrides for better theming support
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 10 08:22:31 UTC 2022 - Adam Majer <adam.majer@suse.de> Fri Jun 10 08:22:31 UTC 2022 - Adam Majer <adam.majer@suse.de>

View File

@ -30,7 +30,14 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
}); });
} }
@@ -60,6 +63,7 @@ export const PasswordFormFields = ({ @@ -53,13 +56,12 @@ export const PasswordFormFields = ({
}) => {
const [password, setPassword] = useState(undefined);
const [passwordConfirm, setConfirmPassword] = useState(undefined);
- const [passwordStrength, setPasswordStrength] = useState("");
- const [passwordMessage, setPasswordMessage] = useState("");
function onPasswordChanged(value) {
setPassword(value); setPassword(value);
change("password", value); change("password", value);
@ -38,7 +45,7 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
if (value) { if (value) {
password_quality(value) password_quality(value)
.catch(ex => { .catch(ex => {
@@ -73,7 +77,9 @@ export const PasswordFormFields = ({ @@ -73,7 +75,9 @@ export const PasswordFormFields = ({
setPasswordStrength(""); setPasswordStrength("");
setPasswordMessage(""); setPasswordMessage("");
} }
@ -48,7 +55,7 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
let variant; let variant;
if (passwordStrength === "") if (passwordStrength === "")
@@ -84,6 +90,7 @@ export const PasswordFormFields = ({ @@ -84,6 +88,7 @@ export const PasswordFormFields = ({
variant = "warning"; variant = "warning";
else else
variant = "danger"; variant = "danger";
@ -56,7 +63,7 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
return ( return (
<> <>
@@ -101,16 +108,7 @@ export const PasswordFormFields = ({ @@ -101,16 +106,6 @@ export const PasswordFormFields = ({
fieldId={idPrefix + "-pw1"}> fieldId={idPrefix + "-pw1"}>
<TextInput className="check-passwords" type="password" id={idPrefix + "-pw1"} <TextInput className="check-passwords" type="password" id={idPrefix + "-pw1"}
autocomplete="new-password" value={password} onChange={onPasswordChanged} /> autocomplete="new-password" value={password} onChange={onPasswordChanged} />
@ -68,7 +75,7 @@ Index: cockpit/pkg/lib/cockpit-components-password.jsx
- measureLocation={ProgressMeasureLocation.none} - measureLocation={ProgressMeasureLocation.none}
- variant={variant} - variant={variant}
- value={Number.isInteger(passwordStrength) ? passwordStrength : 0} /> - value={Number.isInteger(passwordStrength) ? passwordStrength : 0} />
<div id={idPrefix + "-password-meter-message"} className="pf-c-form__helper-text" aria-live="polite">{passwordMessage}</div> - <div id={idPrefix + "-password-meter-message"} className="pf-c-form__helper-text" aria-live="polite">{passwordMessage}</div>
- </div> - </div>
</FormGroup> </FormGroup>