radix-ui / design-system

Design system that was used by @modulz. It’s now archived and superceded by Radix Themes. (See https://github.com/radix-ui/themes)
https://design-system.modulz-deploys.com/
MIT License
2.28k stars 176 forks source link

css property is not being pulled off props, causing unnecessary work #374

Open geraldodev opened 2 years ago

geraldodev commented 2 years ago

css property is not being pulled of props as size, so the component may be receiveing css property value, and its applying throgh spread, and after literally manually computing the css property as a product of merge.

https://github.com/radix-ui/design-system/blob/bb37257d6886cbbe1877180d0fb2f3b00cada3e8/components/Heading.tsx#L37