springernature / ux-elements-docs

UX Documentation for Elements design system
MIT License
1 stars 3 forks source link

Implement tabs on codeblocks so users can see handlebars and html #74

Closed amyhupe closed 1 year ago

amyhupe commented 2 years ago

What

Let users switch between .hbs and html when viewing component demo code on the Elements website.

Why

In recent user research, some users wanted to see html to understand how a component worked and was structured.

Some users used inspector in the Elements website to get this information. Others went to GitHub to look at the component demo.

Letting users see this information in the Elements website means they won't have to travel somewhere else to see it. It also provides better support for teams who aren't using handlebars and may want to use the html as a start point for a component built in their own templating engine.

Done when

sturobson commented 1 year ago

this will be part of the new Elements Documentation Site