Having some fun with Web Components to toggle password input text visibility and check password rules as a user types: https://codepen.io/hexagoncircle/pen/LYKKjmj
=> More informations about this toot | More toots from hexagoncircle@fosstodon.org
Might be a silly way to go about this, but it was a fun experiment. I'm mostly here to have a good time 🙌
=> More informations about this toot | More toots from hexagoncircle@fosstodon.org
New companion article about my experimentation with Web Components and password inputs: https://ryanmulligan.dev/blog/password-input-components/
=> More informations about this toot | More toots from hexagoncircle@fosstodon.org
@hexagoncircle It's lovely! Probably spent 5 minutes watchin' the loop.
=> More informations about this toot | More toots from geoff@front-end.social
@hexagoncircle Thank you for sharing! I’m wondering why you used data attributes for your custom elements. Since they’re already custom, you’re free to choose any custom attributes as well. At least, that’s my way of thinking usually.
=> More informations about this toot | More toots from pepelsbey@mastodon.social
@pepelsbey Yeah, good callout! There are a few reasons influencing my decision to prefix with data-
that @scottjehl outlines in this post: https://mstdn.social/@scottjehl/112683652121687059
=> More informations about this toot | More toots from hexagoncircle@fosstodon.org
@hexagoncircle Nice work. Regarding the rules… If I remember correctly, @rmondello did some awesome work, and probably a standard, that defines password rules, so that password managers can generate as required. That might probably be a nice addition/change to your web component.
=> More informations about this toot | More toots from lennybacon@infosec.exchange
@hexagoncircle Interesting use of web components, thanks for sharing! However there's a typo on the aria-cont(r)ols attribute used on the toggle component :)
=> More informations about this toot | More toots from blokche@mastodon.social
@blokche 🫣 Ah, good catch! That's fixed now, thank you
=> More informations about this toot | More toots from hexagoncircle@fosstodon.org
@hexagoncircle 👌🏼you're welcome :)
=> More informations about this toot | More toots from blokche@mastodon.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini