blob: 3763bf59869d62a5d5369178e32f5b9ac99b181c [file] [log] [blame]
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html">
<link rel="import" href="code_section.html">
<dom-module id="extensions-install-warnings-dialog">
<template>
<style include="cr-shared-style">
div[slot='body'] ul {
background-color: var(--paper-red-50);
margin: 0;
padding-bottom: 10px;
padding-inline-end: 10px;
padding-top: 10px;
}
:host-context([dark]) div[slot='body'] ul {
/* TODO(dbeam): merge with --cr-input-background-color? */
background-color: rgba(0, 0, 0, .3);
color: var(--error-color);
}
</style>
<cr-dialog id="dialog" close-text="$i18n{close}">
<div slot="title">$i18n{installWarnings}</div>
<div slot="body">
<ul>
<template is="dom-repeat" items="[[installWarnings]]">
<li>[[item]]</li>
</template>
</ul>
</div>
<div slot="button-container">
<cr-button class="action-button" on-click="onOkTap_">
$i18n{ok}
</cr-button>
</div>
</cr-dialog>
</template>
<script src="install_warnings_dialog.js"></script>
</dom-module>