Skip to content

Commit 7b95638

Browse files
authored
Merge pull request #1880 from OpenC3/bug/imo-dialog-style
Fix import-map-overrides dialog style
2 parents 603eda0 + ad965bd commit 7b95638

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

openc3-cosmos-init/plugins/packages/openc3-tool-base/public/index-allow-http.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<import-map-overrides-full
8080
show-when-local-storage="devtools"
8181
></import-map-overrides-full>
82+
<script src="/js/fixImoStyle.js"></script>
8283
<script>
8384
;(function () {
8485
Object.getPrototypeOf(System).firstGlobalProp = true

openc3-cosmos-init/plugins/packages/openc3-tool-base/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<import-map-overrides-full
8080
show-when-local-storage="devtools"
8181
></import-map-overrides-full>
82+
<script src="/js/fixImoStyle.js"></script>
8283
<script>
8384
;(function () {
8485
Object.getPrototypeOf(System).firstGlobalProp = true
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
# Copyright 2025, OpenC3, Inc.
3+
# All Rights Reserved.
4+
#
5+
# This program is free software; you can modify and/or redistribute it
6+
# under the terms of the GNU Affero General Public License
7+
# as published by the Free Software Foundation; version 3 with
8+
# attribution addendums as found in the LICENSE.txt
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU Affero General Public License for more details.
14+
#
15+
# This file may also be used under the terms of a commercial license
16+
# if purchased from OpenC3, Inc.
17+
*/
18+
19+
;(function () {
20+
const css = `
21+
.imo-module-dialog {
22+
color: black;
23+
}
24+
`
25+
26+
const style = document.createElement('style')
27+
style.appendChild(document.createTextNode(css))
28+
const imo = document.getElementsByTagName('import-map-overrides-full')
29+
if (imo.length) {
30+
imo[0].shadowRoot.appendChild(style)
31+
}
32+
})()

openc3-cosmos-init/plugins/packages/openc3-tool-base/src/assets/stylesheets/layout/_overrides.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,3 @@ input {
321321
.v-list-item-action {
322322
margin-right: 15px !important;
323323
}
324-
325-
// Fix the single spa debug panel so the text is readable
326-
.imo-modal-container form,
327-
.imo-modal-container input {
328-
color: black;
329-
}
330-
.imo-module-dialog tr {
331-
background-color: white;
332-
}

0 commit comments

Comments
 (0)