Skip to content

Commit 923db88

Browse files
committed
Make HTML text's background transparent
1 parent f74d345 commit 923db88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/ArcGISToolkit/Components/Popups/HTMLTextView.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ struct HTMLTextView: UIViewRepresentable {
5959
<style type="text/css" media="screen">
6060
/* Light mode */
6161
:root {
62-
--body-bg: #FFFFFF;
63-
--body-color: #1C1C1E;
62+
--body-bg: #FFFFFF00;
63+
--body-color: #000000;
6464
--link-color: #0164C8;
6565
}
6666
6767
/* Dark mode */
6868
@media (prefers-color-scheme: dark) {
6969
:root {
70-
--body-bg: #1C1C1E;
70+
--body-bg: #00000000;
7171
--body-color: #FFFFFF;
7272
--link-color: #1796FA;
7373
}
@@ -105,8 +105,8 @@ struct HTMLTextView: UIViewRepresentable {
105105
// regardless of light/dark mode. If the user wants to implement dark
106106
// mode, within their HTML, the background of the HTML will be shown
107107
// over this background.
108-
uiView.backgroundColor = .white
109-
uiView.scrollView.backgroundColor = .white
108+
uiView.backgroundColor = .clear
109+
uiView.scrollView.backgroundColor = .clear
110110
uiView.scrollView.isScrollEnabled = false
111111
uiView.loadHTMLString(displayHTML, baseURL: nil)
112112
uiView.navigationDelegate = context.coordinator

0 commit comments

Comments
 (0)