Yoast / yoast-components

Accessible React components by Yoast
GNU General Public License v3.0
21 stars 6 forks source link

Standardize input fields padding to 8 pixels #747

Open afercia opened 5 years ago

afercia commented 5 years ago

Noticed while looking at https://github.com/Yoast/yoast-components/pull/703

The various input fields (or emulated input fields that are draft-js instances) have inconsistent padding:

screen shot 2018-10-01 at 10 29 42

The design feedback is to standardize to 8 pixels to match the Yoast grid size. For input fields this means 8 pixels for both vertical and horizontal padding. Instead, textareas would probably need a padding: 4px 8px.

Not so simple as it looks at first sight as: