
gr-diff.html and gr-diff-root.html are shared components. Polymer modulizer doesn't convert these files automatically because they are not reachable from the application root (i.e. from gr-app.html). The gerrit-ci can fail on this change. The tests will be repaired after conversion to es6 modules. Change-Id: Icd51889a55f0ead9be953281593246dc75af9a6d
This folder contains shared components that can be used independently from Gerrit.
gr-diff
gr-diff.html
is the gr-diff
component used in gerrit to render diff. If you want to use it, feel free to import it and use it in your project as:
<gr-diff></gr-diff>
All supported attributes defined in polygerrit-ui/app/elements/diff/gr-diff/gr-diff.js
, you can pass them by just assigning them to the gr-app
element.
To customize the style of the diff, you can use css variables
, all supported varibled defined in polygerrit-ui/app/styles/themes/app-theme.html
and polygerrit-ui/app/styles/themes/dark-theme.html
.