gerrit/polygerrit-ui/Polymer2.md
Tao Zhou 6a0e5931a4 Update samples and docs as Gerrit is now in polymer 3
This also fixed a bug in `screen` as it should always
use current origin instead of plugin assets origin.

Change-Id: I6c7385b20dc5b772000d26e08d82bc76dd2d5691
2020-03-18 11:18:41 +01:00

1.4 KiB

Note: Gerrit has moved to polymer 3 as of submitted of https://gerrit-review.googlesource.com/q/topic:%22bower+to+npm+packages+switch%22+(status:open%20OR%20status:merged).

The change is backward compatible, so no code change needed to support all plugins, but we would highly recommend to start moving to latest polymer 3 for all plugins, check out Polymer3.md for more insights.

Polymer 2 upgrade

Gerrit is updating to use polymer 2 from polymer 1 by following the Polymer 2.0 upgrade guide.

Polymer 2 contains several breaking changes that may affect some of the UI features and plugins. One of the biggest change is to have the shadow DOM enabled. This will affect how you query elements inside of your component, how css style works within and across components, and several other usages.

If you are owner of any plugins, please start following the Polymer 2.0 upgrade guide to migrate your plugins to be polymer 2 ready.

If you notice any issues or need help with anything, don't hesitate to report to us here.