Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
549 stars 83 forks source link

Fix line-height style property #611

Closed Linschlager closed 5 months ago

Linschlager commented 5 months ago

[!WARNING] This may break existing usages of the property, so proceed with caution

Currently, line-height interprets unitless int and float values as px. This is undesirable as there is also the unitless lineHeight property which is not available in the current overload structure.

This is especially bad since the unitless approach should be preferred whenever possible. (As per MDN https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)

This proposed change removes the px from the existing overloads and adds additional documentation to the changed properties.

Zaid-Ajaj commented 5 months ago

Included in Feliz v2.8 🚀