React Code Style Guide

I’ve been having the time of my life with React lately. But on my journey, I’ve had a hard time finding good code style guidelines to keep the mix of JSX and JS clean and readable. I’ve been coming up with my own style guides that I’d love to share. Maybe these will be useful to you and, of course, feel free to share similar guidelines in the comment thread below.

Rule #1: Destructure your props

One of my favorite …

The post React Code Style Guide appeared first on CSS-Tricks.

Read more

A CSS Approach to Trap Focus Inside of an Element

I recently read this article by Keith Grant which introduced the newly arrived <dialog>. Excited by this new UI element, I immediately sat down to experiment with it to see how it can be used effectively as a modal — the most common use of it. While experimenting, I discovered a neat CSS trick on how to trap focus within the <dialog> element, a common accessibility requirement for modals, and a notoriously difficult one.

Disclaimer: The <dialog> demos in …

The post A CSS Approach to Trap Focus Inside of an Element appeared first on CSS-Tricks.

Read more

Why Gutenberg and Why Now?

Tevya Washburn has been building websites for more than 20 years and building them on WordPress for 10. He bootstrapped his website maintenance and support company, WordXpress, that he’s worked on full-time for more than seven years. Late last year he launched his first premium plugin, and presented at WordCamp (more…)
Read more

How to Optimize Your Content For Smaller Screens

Mobile device users have been in their billions for a number of years now (with the number steadily rising). In fact, over half of internet users now browse the web primarily via their devices. Therefore, it’s important to ensure that the content you create for your website can be easily viewed on smaller screens. Developing for …
The post How to Optimize Your Content For Smaller Screens appeared first on Torque.
Read more

Logo Design Trends of 2018

Need a new logo? The early logo trends of 2018 are showing more designs with simple shapes, colors, and typography in formats that aren’t overly complex. With so many new websites and brands and companies coming online almost every day, it’s no wonder that logos are trending toward more minimal and readable options. Every logo […]
Read more

Why would I use a Webpack?

Gonzalo García takes a crack at why webpack (not capitalized like npm) exists at all. No particular disagreements here, but here’s my crack at it…

  • We use webpack because we need to import stuff from place;. This is a good pattern. We can use webpack to interpret those statements, as native support for them isn’t what it needs to be yet, and it’s not clear whether the native version will be smart for performance or not (probably not,

The post Why would I use a Webpack? appeared first on CSS-Tricks.

Read more

The spectrum of design roles in 2018

Job titles is a regular topic around here. Occasionally heated, as job titles play a role in the hiring process (why are you asking me React questions for this UX design position role?). And complicated by the fact that there is no agreed-upon standards and the loads of people and companies who don’t take them seriously (we just want people who do a good job, make your title whatever you want it to be). Complicated again …

The post The spectrum of design roles in 2018 appeared first on CSS-Tricks.

Read more

Approaches to Deprecating Code in JavaScript

Recently, I had to dig into the topic of code deprecation in JavaScript. I feel like this topic gets less coverage even though it may a play key role in certain projects, especially when working in bigger teams or dealing with external APIs.

In JavaScript-land, I don’t know of any true industry standards for deprecating JavaScript. It could be different per any team, library or vendor.

That’s why my goal here is to sum up my findings and thoughts on …

The post Approaches to Deprecating Code in JavaScript appeared first on CSS-Tricks.

Read more