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

Fix import-map-overrides dialog style #1880

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<import-map-overrides-full
show-when-local-storage="devtools"
></import-map-overrides-full>
<script src="/js/fixImoStyle.js"></script>
<script>
;(function () {
Object.getPrototypeOf(System).firstGlobalProp = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<import-map-overrides-full
show-when-local-storage="devtools"
></import-map-overrides-full>
<script src="/js/fixImoStyle.js"></script>
<script>
;(function () {
Object.getPrototypeOf(System).firstGlobalProp = true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
# Copyright 2025, OpenC3, Inc.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# This file may also be used under the terms of a commercial license
# if purchased from OpenC3, Inc.
*/

;(function () {
const css = `
.imo-module-dialog {
color: black;
}
`

const style = document.createElement('style')
style.appendChild(document.createTextNode(css))
const imo = document.getElementsByTagName('import-map-overrides-full')
if (imo.length) {
imo[0].shadowRoot.appendChild(style)
}
})()
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,3 @@ input {
.v-list-item-action {
margin-right: 15px !important;
}

// Fix the single spa debug panel so the text is readable
.imo-modal-container form,
.imo-modal-container input {
color: black;
}
.imo-module-dialog tr {
background-color: white;
}
Loading