mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-27 21:34:24 +00:00
fix(console, login): console - ensure permission is available, login - i18n fixes, input borders, lgn-touched script to add class on blur (#3760)
* permission restriction, member, login i18n input borders, secondary text * add touched js
This commit is contained in:
13
internal/api/ui/login/static/resources/scripts/touched.js
Normal file
13
internal/api/ui/login/static/resources/scripts/touched.js
Normal file
@@ -0,0 +1,13 @@
|
||||
let inputs = document.getElementsByTagName("input");
|
||||
|
||||
if (inputs && inputs.length) {
|
||||
for (let input of inputs) {
|
||||
input.addEventListener("focus", () => {
|
||||
input.classList.add("lgn-focused");
|
||||
});
|
||||
input.addEventListener("blur", () => {
|
||||
input.classList.add("lgn-touched");
|
||||
input.classList.remove("lgn-focused");
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user