Brad Frost

Labelmask

Labelmask I've recently been for more efficient ways for user inputs, especially around credit card input. In exploring using input mask solutions, a lot of people have weighed in on several important limitations/frustrations:

Yesterday, the Filament Group released a nice little script called Politespace, which provides an alternative for input masking. Basically, Politespace adds spacing for input fields when the user exits the field, rather than trying to add that formatting while the user is trying to input data. I really like this solution, however a lot of input masks' benefits come from guiding the user while they are entering their information. So while I think Politespace is definitely great for reviewing data once it's already entered, I wanted to explore ways to make the input process a little easier for users without having to rely on an input mask. Labelmask I stole Politespace's code (thanks Zach!) and hacked it up to create a proof of concept. What Labelmask does is inserts formatting hinting after the label, and updates as the user inputs their information. When the user leaves the field the formatting gets applied to the input value itself, Politespace-style. Because the hinting isn't being applied to the input itself, (I'm hoping) it's more accessible to screen readers and doesn't get in the way of the user's input as much. Wishlist

You can view a demo here or check out the project on Github. All in all, I think it's a pretty good balance between accessibility and unobtrusiveness. Curious to hear people's thoughts! *[DETAILS]: Device, Environment, Time, Activity, Individual, Location, Social *[RESS]: Responsive Design with Server-Side Components