There are many ways you can contribute to these demos:
Some of these demos have been migrated from the old TestDrive website and might contain some bugs with some browsers or the code doesn't follow the latest standards. We've tried to do our best to prevent this but we all know things can happen. If you find a bug, open an issue. If you know how to fix it or improve a demo, do a Pull Request!
If you are interested in contributing with an interoperable, open source demo, open an issue and we will see how we can do that!
Thank you for contributing!
If your PR contains a new demo, it must be submitted at least one week in advance of the intended publication.
- Fork this project and set up a remote to file pull requests against later.
- Install Node, then do an
npm install
from the root of the Demos repo to install linting dependencies. - Create a feature branch off of the master branch. Each new demo, or solution to an issue, gets its own branch / PR.
- Review the accessibility requirements that your demo must meet. If you'd like help with design work, please chat with @melanierichards.
Duplicate the demo-template/
directory and start from there. Follow the instructions in the index.html
file.
In your commit message, please include "fixes #issueNumber" or "ref #issueNumber", and a short, present-tense description of what you did.
- Lint your work using
npm run lint:css -- demoDirectoryName/**/*.css
andnpm run lint:js -- demoDirectoryName/**/*.js
. You can add a--fix
flag to the end of the CSS linting command, and the linter will fix as much as it can. - Update your feature branch with any new commits from MicrosoftEdge/Demos/master.
- Check your PR one last time for accessibility issues.
- Create a pull request against MicrosoftEdge/Demos/master with the changes from your branch. Title with the name of your demo or fixes. Mention
@molant
and optionally@melanierichards
(for front-end/design review) in the comments so we're aware of your PR. - Push any changes based on feedback to your feature branch. This will update the PR with the most recent changes.