Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Conversation

@schalkneethling
Copy link

This introduces the next iteration of the HTML examples. With this update both the HTML and CSS are displayed as a tabbed interface. This allows users to experiment by changing both the HTML as well as the CSS and interactively run the code to see the output.

There are some things that still needs to be done. Things such as documenting how to contribute HTML examples, deciding if we want to also explore a non-tabbed UI(this should be as simple as switching out the base template used), whether we want to introduce a JS tab at this stage or, stick with just HTML and CSS.

With all of that said, this is good for review and merge if all looks good. The rest can be handled iteratively. We can then also get this on a demo page on MDN to see how it behaves in its final destination.

Let me know your thoughts @wbamberg

@schalkneethling schalkneethling added enhancement Improves an existing feature. p1 We will address this soon and will provide capacity from our team for it in the next few releases. labels Feb 12, 2018
@schalkneethling
Copy link
Author

@stephaniehobson @alexgibson @jpetto ~ If either of you have time to code review this PR it would be much appreciated. Thanks!

@wbamberg
Copy link
Contributor

I think this looks really good. The only thing I think we need before user testing is to run the example on page load (like the CSS examples) rather than wait for the user to press "Run" (like the JS examples).

(But then I wanted to do that for the JS as well, and it just confused people. But still this feels different.)

I'm unsure about both the positioning and the wording of the "Run" button. I might call it "Update", but I'm not sure where we could move it to that would be better. But we can test this stuff, anyway.

I've done some testing of the JS and CSS examples in this branch, and nothing seems to be broken :).

I don't think we need a JS tab for user testing (we probably don't need it for the majority of the HTML examples).

Copy link
Contributor

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per my comment, but putting it in a review:

I think this looks really good. The only thing I think we need before user testing is to run the example on page load (like the CSS examples) rather than wait for the user to press "Run" (like the JS examples).

(But then I wanted to do that for the JS as well, and it just confused people. But still this feels different.)

I'm unsure about both the positioning and the wording of the "Run" button. I might call it "Update", but I'm not sure where we could move it to that would be better. But we can test this stuff, anyway.

I've done some testing of the JS and CSS examples in this branch, and nothing seems to be broken :).

I don't think we need a JS tab for user testing (we probably don't need it for the majority of the HTML examples).

@schalkneethling
Copy link
Author

@wbamberg updates made. Thx!

Copy link
Contributor

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @schalkneethling , looks good to me!

@wbamberg wbamberg merged commit 432e90b into mdn:master Feb 22, 2018
wbamberg pushed a commit to wbamberg/interactive-examples that referenced this pull request Feb 22, 2018
wbamberg pushed a commit that referenced this pull request Feb 22, 2018
bookshelfdave added a commit that referenced this pull request Feb 22, 2018
wbamberg pushed a commit that referenced this pull request Feb 22, 2018
wbamberg pushed a commit to LLyaudet/interactive-examples that referenced this pull request Feb 23, 2018
…tical-align

* upstream/master:
  Logical properties (mdn#598)
  Revert "Adds next iteration of the HTML interactive editor (mdn#576)" (mdn#605)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improves an existing feature. p1 We will address this soon and will provide capacity from our team for it in the next few releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants