Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

Using closest() to return the correct DOM element

March 25, 2019
1 min read
25740 views

I was recently working with a vertical navigation component and ran into a hiccup where the JavaScript code wouldn’t fire depending on where I clicked on the menu item link. I did some digging and thought I’d share a little about what I discovered and how I was able to...

  • HTML
  • JavaScript

Phone number links and accessibility

January 29, 2018
1 min read
18575 views

I currently promote using the default styling of links for phone numbers. I've left this post up for historical purposes. One UX challenge that used to give me pause was making phone numbers accessible in the browser while still being functional. Here’s what I mean about that. The WCAG 2.0...

  • accessibility
  • JavaScript
  • mobile
  • UX

Nope, nope, nope, line-height is unitless

January 30, 2017
1 min read
32427 views

Here’s a bit of CSS trivia that, at least on the surface, seems straightforward but that I see misused repeatedly. Let’s start with an oldie-but-goodie CSS interview question: You want the text on your website to be double-spaced by default. Which of the following line-height values is the best way...

  • CSS
Newer posts Older posts
Twitter
LinkedIn
GitHub
CodePen
© 2025 Matt Smith. All rights reserved.