Doc Pop’s News Drop: Are Developers Responsible When a Plugin Breaks a Site?
The post Doc Pop’s News Drop: Are Developers Responsible When a Plugin Breaks a Site? appeared first on Torque.
Compressive Images Revisited
Tim Kadlec returns to the topic of how to make images on the web as performant as possible and looks at the technique called “Compressive Images” which is now not recommended for a bunch of reasons. Tim summarizes his point here:
By now the trade-off is pretty clear. Compressive images give us a reduced file size, but it greatly increases the memory footprint. Thanks to the standards that have been developed around responsive images, it’s a trade-off we no longer …
The post Compressive Images Revisited appeared first on CSS-Tricks.
The Facebook Algorithm Change 2018: What it Means for Your Marketing
The post The Facebook Algorithm Change 2018: What it Means for Your Marketing appeared first on Torque.
20+ Best iPad Pro Mockups
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.
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.
Why Gutenberg and Why Now?
How to Optimize Your Content For Smaller Screens
The post How to Optimize Your Content For Smaller Screens appeared first on Torque.
Sticky as a Local Fixed?
You know how position: relative
creates a new context for absolute positioning within an element? Well, position: sticky
is a locally scoped version of position: fixed
. Let’s take a look at how that works using a modal with a sticky close button as an example.
The post Sticky as a Local Fixed? appeared first on CSS-Tricks.