Files
gerrit/polygerrit-ui/app/elements/test/plugin.html
Ben Rohlfs 1fa5fdbacc Move <style> inside <template> in all plugin files
This is a required step for Polymer 2 compatibility:
https://polymer-library.polymer-project.org/2.0/docs/upgrade#remove-deprecated-patterns-in-dom-module

Bug: Issue 11107
Change-Id: I3fd017326d412817f6650dcffe53f2b022a66e64
2019-07-02 21:37:09 +02:00

21 lines
465 B
HTML

<dom-module id="my-plugin">
<script>
Gerrit.install(plugin =>
plugin.registerStyleModule('app-theme', 'myplugin-app-theme')
);
</script>
</dom-module>
<dom-module id="myplugin-app-theme">
<template>
<style>
html {
--primary-text-color: #F00BAA;
--header-background-color: #F01BAA;
--header-title-content: "MyGerrit";
--footer-background-color: #F02BAA;
}
</style>
</template>
</dom-module>