Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for dynamic values #4

Open
rtsao opened this issue Nov 30, 2017 · 0 comments
Open

Support for dynamic values #4

rtsao opened this issue Nov 30, 2017 · 0 comments

Comments

@rtsao
Copy link
Member

rtsao commented Nov 30, 2017

there's edge cases where truly dynamic values are needed.

this is usually some high cardinality domain of input that also needs to maps to a range of css values with similar cardinality.

Examples:

  • Color picker (many colors, many css color values)
  • Range slider (0-100 float, many css position values)
  • Label placeholder (arbitrary strings, arbitrary placeholder content)

Ideally, ESS should provide a way to accommodate these use cases via some mechanism of dynamic values, provided that:

  • XSS is impossible
  • Build-time RTL is unaffected
  • Build-time vendor prefixing is unaffected

Essentially, ESS needs to allow the things that would be safe and performant with CSS-in-JS, but disallow non-robust or unsafe things, or things that would require bulky runtime logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant