<!--
Copyright 2022 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<style>
[hidden] {
display: none !important;
}
cr-dialog::part(dialog) {
--cr-dialog-top-container-min-height: 0px;
background-color: var(--cros-bg-color-elevation-3);
border-radius: 12px;
box-shadow: var(--cros-elevation-3-shadow);
user-select: none;
width: 448px;
}
cr-dialog::part(dialog)::backdrop {
background-color: var(--cros-app-shield-60);
}
cr-dialog::part(wrapper) {
/* subtract the internal padding in <cr-dialog> */
padding: calc(24px - 20px);
}
cr-dialog #message {
color: var(--cros-text-color-primary);
outline: none;
padding: 20px 0;
}
cr-checkbox {
margin-bottom: 16px;
margin-inline-start: 4px;
}
cr-dialog [slot=button-container] {
padding-top: 0;
}
cr-button {
--active-bg: transparent;
--active-shadow:
0 1px 2px var(--cros-button-active-shadow-color-key-secondary),
0 1px 3px var(--cros-button-active-shadow-color-ambient-secondary);
--active-shadow-action:
0 1px 2px var(--cros-button-active-shadow-color-key-primary),
0 1px 3px var(--cros-button-active-shadow-color-ambient-primary);
--bg-action: var(--cros-button-background-color-primary);
--border-color: var(--cros-button-stroke-color-secondary);
--disabled-bg-action:
var(--cros-button-background-color-primary-disabled);
--disabled-bg: var(--cros-button-background-color-primary-disabled);
--disabled-border-color:
var(--cros-button-stroke-color-secondary-disabled);
--disabled-text-color: var(--cros-button-label-color-secondary-disabled);
--hover-bg-action: var(--cros-button-background-color-primary-hover-preblended);
--hover-bg-color: var(--cros-button-background-color-secondary-hover);
--hover-border-color: var(--cros-button-stroke-color-secondary-hover);
--ink-color: var(--cros-button-ripple-color-secondary);
--ripple-opacity-action: var(--cros-button-primary-ripple-opacity);
--ripple-opacity: var(--cros-button-secondary-ripple-opacity);
--text-color-action: var(--cros-button-label-color-primary);
--text-color: var(--cros-button-label-color-secondary);
}
#keepboth {
margin-inline-start: auto;
}
#replace {
margin-inline-end: 0;
}
:host-context(.pointer-active) cr-button:not(:active):hover {
background: transparent;
cursor: unset;
}
:host-context(.pointer-active) cr-button:focus {
box-shadow: none;
}
:host-context(.focus-outline-visible) cr-button:focus {
box-shadow: none;
outline: 2px solid var(--cros-focus-ring-color);
outline-offset: 2px;
}
</style>
<cr-dialog id="conflict-dialog" consume-keydown-event>
<div slot="body">
<div id="message" tabindex="0">
</div>
<cr-checkbox id="checkbox">
$i18n{CONFLICT_DIALOG_APPLY_TO_ALL}
</cr-checkbox>
</div>
<div slot="button-container">
<cr-button class="cancel-button" id="cancel">
$i18n{CANCEL_LABEL}
</cr-button>
<cr-button class="cancel-button" id="keepboth">
$i18n{CONFLICT_DIALOG_KEEP_BOTH}
</cr-button>
<cr-button class="cancel-button" id="replace">
$i18n{CONFLICT_DIALOG_REPLACE}
</cr-button>
</div>
</cr-dialog>