blob: e6d16e5e913355441f36f4c29ce06d669c87c38b [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/shared_vars_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="../data/destination.html">
<link rel="import" href="../data/state.html">
<link rel="import" href="strings.html">
<dom-module id="print-preview-button-strip">
<template>
<style>
:host {
display: flex;
flex-direction: row;
justify-content: flex-end;
padding-bottom: 16px;
padding-inline-end: 16px;
padding-top: 16px;
}
@media (prefers-color-scheme: light) {
:host {
background-color: white;
}
}
:host cr-button:not(:last-child) {
margin-inline-end: 8px;
}
:host cr-button:last-child {
margin-inline-end: 0;
}
</style>
<if expr="not is_win">
<cr-button class="cancel-button" on-click="onCancelClick_">
$i18n{cancel}
</cr-button>
</if>
<cr-button class="action-button" on-click="onPrintClick_"
disabled$="[[!printButtonEnabled_]]">
[[printButtonLabel_]]
</cr-button>
<if expr="is_win">
<cr-button class="cancel-button" on-click="onCancelClick_">
$i18n{cancel}
</cr-button>
</if>
</template>
<script src="button_strip.js"></script>
</dom-module>