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

Playground improvements (click-to-copy, default initial code, movable panels, etc.) #779

Open
jgerigmeyer opened this issue Jul 20, 2023 · 1 comment

Comments

@jgerigmeyer
Copy link
Contributor

jgerigmeyer commented Jul 20, 2023

Opening this issue to capture a number of proposed improvements to the new Sass Playground. Feel free to split this into separate issues as you see fit.

  1. Default code contents on initial Playground load (if not following a direct link with existing contents)
  2. Click-to-copy input SCSS/Sass or output CSS: see design proposal
  3. Link directly from code examples throughout to the site, to open the code in the Playground: see design proposal
  4. Drag to expand/collapse input/output/console panel widths: see design proposal
  5. Autocomplete Sass-specific keywords (e.g. @use, @debug) and in-scope variables
  6. Click on line number in the Console to go to that line in the input panel
  7. Convert existing input between SCSS and Sass when switching between panels
@nex3
Copy link
Contributor

nex3 commented Sep 6, 2023

I'm striking through number 7 as "infeasible". We actually used to maintain a tool that could do this, but it turns out that the ongoing maintenance cost of needing to be able to produce nicely-formatted source code for every type of source AST node is substantial. I don't think it's worth the value of using it in the playground.

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

No branches or pull requests

2 participants