Open nick-gaudreau opened 5 years ago
The overlay
value is deprecated and therefore not included. What you can do to get rid of the type error is to do: { ['overflowX' as any]: 'overlay' }
as described in the docs. I hope it helps.
Nice thx - I didn't think of casting it
To quote MDN:
Only supported in WebKit-based (e.g., Safari) and Blink-based (e.g., Chrome or Opera) browsers.
It doesn't look like the value is deprecated, just nonstandard. Should it be added and this issue reopened?
What is the status on this issue?
export type OverflowXProperty = Globals | "auto" | "clip" | "hidden" | "scroll" | "visible";
I think its not the only one that should have the 'overlay' property. With material UI when assigning style using JS for overflowX: "overlay" I would get a type error.
Manually did this fix my issue in csstype/index.d.ts: export type OverflowXProperty = Globals | "auto" | "clip" | "hidden" | "scroll" | "visible" | "overlay";