Testing React Components With Enzyme
The post Testing React Components With Enzyme appeared first on Torque.
Like Eric Bailey says, if it’s interactive, it needs a focus style. Perhaps your best bet? Don’t remove the dang outlines that focusable elements have by default. If you’re going to rock a button { outline: 0; }
, for example, then you’d better do a button:focus { /* something else very obvious visually */ }
. I handled a ticket just today where a missing focus style was harming a user who relies on visual focus styles to …
The post Keyboard-Only Focus Styles appeared first on CSS-Tricks.
With the introduction of dark mode in macOS, Safari Technology Preview 68 has released a new feature called prefers-color-scheme
which lets us detect whether the user has dark mode enabled with a media query.
That’s right. If this becomes a little bit more supported in other browsers, then we might potentially soon have a way to toggle on night modes with a few lines of CSS!
Recently Mark Otto described how we can start using prefers-color-scheme today in order …
The post Dark modes with CSS appeared first on CSS-Tricks.
JavaScript and images tend to get the bulk of the blame for slow websites, but Harry explains very clearly why CSS is equally to blame and harder to deal with:
…
The post CSS and Network Performance appeared first on CSS-Tricks.
Following up from Geoff’s intro article on The Second “S” in CSS, let’s now move the spotlight to the “C” in CSS — what we call the Cascade. It’s where things start to get messy, and even confusing at times.
Have you ever written a CSS property and the value doesn’t seem to work? Maybe you had to turn to using !important
to get it going. Or perhaps you resorted to writing the CSS inline on the element …
The post The “C” in CSS: The Cascade appeared first on CSS-Tricks.
Explore what the world is searching. Enter a search term or a topic.