Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] base_import: fix background color in dark mode #159336

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<templates xml:space="preserve">
<t t-name="ImportAction">
<div class="h-100 d-flex flex-column">
<Layout className="'o_import_action d-flex h-100 overflow-auto bg-white'" display="display">
<Layout className="'o_import_action d-flex h-100 overflow-auto'" display="display">
<t t-set-slot="control-panel-create-button">
<t t-if="isPreviewing">
<button t-if="!state.isPaused" type="button" class="btn btn-primary" t-on-click="() => this.handleImport(false)">Import</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<templates xml:space="preserve">
<t t-name="ImportDataContent">
<div class="o_import_data_content flex-grow-1 overflow-auto border-start">
<div t-if="props.previewError" class="border-bottom p-2 bg-light">
<div t-if="props.previewError" class="border-bottom p-2">
<div class="alert alert-danger mb-0">
<p>
Import preview failed due to: "
Expand All @@ -13,15 +13,15 @@
<p t-if="props.columns.length > 0">Here is the start of the file we could not import:</p>
</div>
</div>
<div t-if="!props.options.has_headers" class="border-bottom p-0 bg-light">
<div t-if="!props.options.has_headers" class="border-bottom p-2">
<p class="alert alert-info mb-0">
If the file contains
the column names, Odoo can try auto-detecting the
field corresponding to the column. This makes imports
simpler especially when the file has many columns.
</p>
</div>
<div t-if="props.importMessages.length > 0" class="border-bottom p-2 bg-light">
<div t-if="props.importMessages.length > 0" class="border-bottom p-2">
<t t-foreach="props.importMessages" t-as="message" t-key="`${message.lines[0]}-${message_index}`">
<p t-att-class="getErrorMessageClass(props.importMessages, message.type, message_index)">
<t t-foreach="message.lines" t-as="line" t-key="`${line}-${line_index}`">
Expand All @@ -30,7 +30,7 @@
</p>
</t>
</div>
<table t-if="!props.previewError" class="table table-borderless w-100">
<table t-if="!props.previewError" class="table table-borderless w-100 bg-view">
<thead>
<tr class="border-bottom">
<th scope="col" style="width: 20%;">File Column</th>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="ImportDataSidepanel">
<div class="o_import_data_sidepanel p-3 overflow-auto">
<div class="o_import_data_sidepanel p-3 overflow-auto bg-view">
<div class="pb-4">
<h4>Imported file</h4>
<div class="mb-2 d-flex align-items-center">
Expand Down