TypeScript-Handbook
TypeScript-Handbook copied to clipboard
Don't use ems (or use carefully) - they compound in CSS
Not sure where to log issues with the design itself, so please redirect me if needed. The issue is with the use of ems for the design - in CSS, they compound on top of each other and can result in some larger than expected sizing if you aren't careful. For example:

This occurs because the list item is within another list item and 1.6 * 1.6 = 3.2em.
This also happens on the page on enums:
https://www.typescriptlang.org/docs/handbook/enums.html#computed-and-constant-members

Sure would be nice if I could submit a pull request to fix this ...