зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1810890 Part 7: update addwidget mach command r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D187232
This commit is contained in:
Родитель
c9a592ccc5
Коммит
7c4347ed32
|
@ -28,11 +28,6 @@ export default class {class_name} extends MozLitElement {{
|
|||
variant: {{ type: String }},
|
||||
}};
|
||||
|
||||
// Use a relative URL in storybook to get faster reloads on style changes.
|
||||
static stylesheetUrl = window.IS_STORYBOOK
|
||||
? "./{element_name}/{element_name}.css"
|
||||
: "chrome://global/content/elements/{element_name}.css";
|
||||
|
||||
constructor() {{
|
||||
super();
|
||||
this.variant = "default";
|
||||
|
@ -40,7 +35,7 @@ export default class {class_name} extends MozLitElement {{
|
|||
|
||||
render() {{
|
||||
return html`
|
||||
<link rel="stylesheet" href=${{this.constructor.stylesheetUrl}} />
|
||||
<link rel="stylesheet" href="chrome://global/content/elements/{element_name}.css" />
|
||||
<div>Variant type: ${{this.variant}}</div>
|
||||
`;
|
||||
}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче