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
{{ message }}
Repository navigation
[labs/react] createComponent React component style property typescript problem #3021
Overriding the style property on a wrapped component (using createComponent) results in a typescript error.
The error expects all style properties to be set.
(property) style?: (CSSStyleDeclaration & React.CSSProperties) | undefined
Type '{ background: string; }' is not assignable to type 'CSSStyleDeclaration & CSSProperties'.
Type '{ background: string; }' is missing the following properties from type 'CSSStyleDeclaration': accentColor, alignContent, alignItems, alignSelf, and 450 more.ts(2322)
Expected Results
Allow overriding of style property
Actual Results
Typescript error, expecting all css properties to be set
Activity
[-][labs/react] [/-][+][labs/react] createComponent React component style property typescript problem[/+]fix(lit-labs/react): Fix style attribute conflicts with the type defi…
fix(lit-labs/react): Fix style attribute conflicts with the type defi…
fix(lit-labs/react): Fix style attribute conflicts with the type defi…
fix(lit-labs/react): Fix style attribute conflicts with the type defi…
fix(lit-labs/react): Fix style attribute conflicts with the type defi…
fix(lit-labs/react): Fix style attribute conflicts with the type defi…
taylor-vann commentedon Jul 15, 2022
This issue should be resolved with #3072
:) curious if that can be confirmed