cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.08k stars 399 forks source link

px unit is not appended to css rowGap property #1435

Closed VineethK336 closed 3 years ago

VineethK336 commented 3 years ago

Expected behavior: When we give the css rowGap: 10, jss should have ideally translated it to row-gap: 10px css row-gap

Describe the bug: However, it was translated to row-gap: 10 (The unit px is missing)

Codesandbox link: Here's a simple reproduction of the issue: https://codesandbox.io/s/vigilant-pine-z4ytr?file=/src/App.js

Versions (please complete the following information):

Came here following this issue: https://github.com/mui-org/material-ui/issues/23505

If the fix is to add an entry for row-gap in packages/jss-plugin-default-unit/src/defaultUnits.js, I'd be happy to create a PR as well.

kof commented 3 years ago

Released https://github.com/cssinjs/jss/releases/tag/v10.5.1