Weekly bookmarks - Issue #17
Thoughts about front-end development and design. And probably other ramblings by Una Kravets.
Spacing is hard to get right!
This can be easier when thinking about parent/child element context
Setting container spacing as a benchmark, then setting the distance between our elements to 50% of that, it generally feels about right*
24px container spacing = 12px distance📏 https://t.co/xp2aWzKqDQ
Some months ago I decided to organize my tests by feature instead of by test type.
Having lived with it for a while now, I would never go back.
If you’re writing tests for a model validation in #rails, consider testing the error message to ensure the correct validation is being tested to avoid false positives.
Alternatively, write a system test that ensures the correct message is displayed when the form is submitted. https://t.co/K3RDqnstT3