Twitter | Search | |
Dan Tonon
Author of the CSS Grid in IE series on CSS Tricks. Multi award winning front end web developer. Avid contributor to the open source community.
1,718
Tweets
61
Following
218
Followers
Tweets
Dan Tonon 19h
Replying to @hakimel
Having the blue focus indicator wrap around both the label and the value is creeping me out a bit. The focus area says to me that the content is editable and having it wrap around the label makes it feel like the label is editable.
Reply Retweet Like
Dan Tonon Aug 21
I'm talking about normalize.css by the way incase that wasn't clear.
Reply Retweet Like
Dan Tonon Aug 21
If you aren't using this technique in your CSS, you're missing out. It's so much nicer than the shorthand alternative.
Reply Retweet Like
Dan Tonon Aug 21
Replying to @Mandy_Kerr
It is also much DRYer. You only state 10px once instead of 3 times.
Reply Retweet Like
Dan Tonon Aug 21
Replying to @Mandy_Kerr
I agree, I do that pattern all the time.
Reply Retweet Like
Dan Tonon Aug 21
I'm pretty sure it already does 🤔
Reply Retweet Like
Dan Tonon Aug 21
Replying to @MarcoSuarez
Go to a capital city and work on government websites. Up side: you never have to worry about a manager trying to squeeze some anti-consumer practice into it. Down side: IE has to look identical to the modern browsers. The IE user base is likely to be >50% of your traffic.
Reply Retweet Like
Dan Tonon Aug 20
Sorry everyone who have been eagerly waiting for the updated sectioning elements article. I promise it is still being worked on. Need to balance 9-5 full time work + acting rehearsals + improv classes + singing lessons + Dungeons & Dragons + Social life + Article Writing 😵
Reply Retweet Like
Dan Tonon Aug 20
An excellent article explaining how to do highly accessible form validation 🤓 😁
Reply Retweet Like
Dan Tonon retweeted
Adrian Roselli 🗯 Aug 19
Last year at at Mozilla Hackathon I volunteered to tackle tool-tips. After an intervention I gave up. Sarah nicely summarizes why tool-tips are such a mess.
Reply Retweet Like
Dan Tonon retweeted
Ben Lesh Aug 15
I've often seen people getting the first item out of an array using `filter(fn)[0]`, when the really wanted `find(fn)`. The former will loop over *all* the items, *and* create an additional array. The latter will find the first one, return it, and stop. Should be a lint rule 🤔
Reply Retweet Like
Dan Tonon retweeted
Greg Whitworth Aug 15
Folks, I'm building out a new survey that focuses on the <select> element. I'm looking for as many variations (style, behavior, etc) of custom built/library dropdowns you've used. Please RT for reach, thanks :)
Reply Retweet Like
Dan Tonon Aug 17
For all those developers that struggle with explaining why code quality matters.
Reply Retweet Like
Dan Tonon Aug 17
Replying to @andybelldesign
All of the above
Reply Retweet Like
Dan Tonon Aug 15
So if you use tabs instead of spaces for indenting, does the problem go away?
Reply Retweet Like
Dan Tonon Aug 15
Replying to @nikkipantony
I'm glad you enjoyed the article. 😊 Sorry that the updated version is taking so long. In the mean time make sure to look through the HTML in the Code Pen at the top of the article for more screen-reader friendly HTML.
Reply Retweet Like
Dan Tonon Aug 14
An exciting new feature coming to JS that you can use right now with the help of Babel 😁
Reply Retweet Like
Dan Tonon Aug 14
I don't think you need the second question mark. If result.message is defined then you should always be able to run .includes() on it. So it should be: const is404 = result?.message.includes('404');
Reply Retweet Like
Dan Tonon retweeted
Dan Tonon Aug 14
For the best radio/checkbox UX you need: - fieldset - legend as a DIRECT CHILD of the fieldset - use float: left on the legend for easy styling - a single name attribute shared by all the inputs that is unique to that group - a label connected to each input
Reply Retweet Like
Dan Tonon Aug 14
fieldset/legend provides a label for the group. The name programmatically connects the inputs together so screen readers know how many inputs in the group there are and where in the group the user is currently focused.
Reply Retweet Like