* Implimented an inline toggle button to show/hide your password, also changed the css to accommodate these changes * Cleaned the css Added the svg's to their own const for easy reuse Added localization for the arialabel on the button Seperated the createFormLayoutItem so there is a seperate for the password input Moved all the conditional logic in the onclick event to fit inside one if/else statement * Removed old logic that added a 100ms timeout that would sometimes be enough for localization to load, and replaced it with a function. The function will try and resolve the promise by checking if the localize.terms methods returns a changed value, if not then it retries every 50ms or untill it hits a max retry of 40/2 seconds. * Re adding the hide for -ms-reveal to support Microsoft Edge browsers * Removed a console.log * Alligned the button behavior so it fits better with what we have in the uui libary. Now the button is always visible instead of appearing on hover or when in focus * Update src/Umbraco.Web.UI.Login/src/auth.element.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Umbraco.Web.UI.Login/src/auth.element.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @iOvergaard * Apply suggestion from @iOvergaard * Adding the requested changes via my own fork (#20664) Changed the logic for waitForLocallization Added the svg's as files that are imported instead of having the raw svg in the code --------- Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
273 B
273 B