You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See error errors produced in the sx prop of the Box component in lines 8–11.
(property) WebkitBoxOrient: string
Type 'string' is not assignable to type 'ThemeUIStyleObject'.ts(2322)
(property) WebkitLineClamp?: number | ThemeUICSSProperties | CSSPseudoSelectorProps | CSSSelectorObject | VariantProperty | ... 9 more ... | undefined
...
Type 'number' is not assignable to type 'ThemeUIStyleObject'.ts(2322)
Expected behavior
The Webkit vendor prefixes should not produce Typescript errors. See this comment for reference #234 (comment).
Additional context
The line clamping still works as expected, it's only the Typescript error that is not expected. See the output of the provided codesandbox. Removing the WebkitBoxOrient and WebkitLineClamp gets rid of the Typescript errors.
The provided codesandbox uses 0.4.0-rc.1 of theme-ui but it is also present in 0.3.1.
The text was updated successfully, but these errors were encountered:
Describe the bug
Using
WebkitBoxOrient
andWebkitLineClamp
properties in thesx
prop produces Typescript errors.To Reproduce
Steps to reproduce the behavior:
sx
prop of theBox
component in lines 8–11.Expected behavior
The Webkit vendor prefixes should not produce Typescript errors. See this comment for reference #234 (comment).
Additional context
The line clamping still works as expected, it's only the Typescript error that is not expected. See the output of the provided codesandbox. Removing the
WebkitBoxOrient
andWebkitLineClamp
gets rid of the Typescript errors.The provided codesandbox uses
0.4.0-rc.1
oftheme-ui
but it is also present in0.3.1
.The text was updated successfully, but these errors were encountered: