vanilla-framework icon indicating copy to clipboard operation
vanilla-framework copied to clipboard

Create editable fields within code snippets

Open danielmutis opened this issue 3 years ago • 7 comments

After speaking with Landscape's product manager, he suggested we implement an editable field feature within the code snippet; which could update other pieces of code where the user's input may be needed. An example would be a tutorial where all the steps depend on a project's name, and they could replace that word in all following steps of the tutorial.

There is an example of this being implemented in google's documentation

Screenshot 2022-02-22 at 18.01.30.png

Screenshot 2022-02-22 at 18.01.39.png

Screenshot 2022-02-22 at 18.01.48.png

danielmutis avatar Feb 22 '22 17:02 danielmutis

I think this feature would be very useful on other places, such as the Snapcraft yaml file on the first snap flow.

danielmutis avatar Feb 22 '22 17:02 danielmutis

WG: @danielmutis to bring this up with the documentation team to double-check on the use-case

clagom avatar Feb 23 '22 10:02 clagom

WG: @danielmutis please add it to your slides to discuss it with the documentation team

clagom avatar Mar 23 '22 10:03 clagom

That's a good idea, I will add it!

danielmutis avatar Mar 24 '22 10:03 danielmutis

WG: best to investigate the implementation challenge before spending time on designing the feature. Implementing this in Discourse might require a lot of JS, if even possible.

clagom avatar Apr 06 '22 09:04 clagom