Skip to content

Commit e7b46d6

Browse files
committed
Ensure icons appear white in dark mode
1 parent ee165d0 commit e7b46d6

File tree

1 file changed

+5
-5
lines changed
  • packages/ui/src/code-snippets-wrapper

1 file changed

+5
-5
lines changed

packages/ui/src/code-snippets-wrapper/icons.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ export const ShellIcon: FC<IconProps> = ({ className }) => (
4242
>
4343
<path
4444
d="M5 11.8574L8.5 8.4287L5 5"
45-
stroke="black"
45+
stroke="currentColor"
4646
strokeLinecap="round"
4747
strokeLinejoin="round"
4848
strokeWidth="1.2"
4949
/>
5050
<path
5151
d="M9 13.5H14"
52-
stroke="black"
52+
stroke="currentColor"
5353
strokeLinecap="round"
5454
strokeLinejoin="round"
5555
strokeWidth="1.2"
5656
/>
57-
<rect height="17" rx="1.5" stroke="black" width="17" x="0.5" y="0.5" />
57+
<rect height="17" rx="1.5" stroke="currentColor" width="17" x="0.5" y="0.5" />
5858
</svg>
5959
);
6060

@@ -69,12 +69,12 @@ export const JSIcon: FC<IconProps> = ({ className }) => (
6969
>
7070
<path
7171
d="M6.008 14.7943L5.92 13.7863L6.536 13.7543C6.96267 13.7276 7.176 13.5036 7.176 13.0823V9.07429H8.416V13.0663C8.416 14.1223 7.856 14.6876 6.736 14.7623L6.008 14.7943ZM12.2084 14.8023C11.7657 14.8023 11.347 14.7463 10.9524 14.6343C10.563 14.5223 10.2377 14.3703 9.97637 14.1783L10.3364 13.2023C10.587 13.3783 10.8724 13.517 11.1924 13.6183C11.5177 13.7196 11.8564 13.7703 12.2084 13.7703C12.5924 13.7703 12.867 13.7116 13.0324 13.5943C13.203 13.4716 13.2884 13.3196 13.2884 13.1383C13.2884 12.9836 13.2297 12.861 13.1124 12.7703C12.995 12.6796 12.7897 12.6023 12.4964 12.5383L11.5924 12.3463C10.5844 12.133 10.0804 11.6103 10.0804 10.7783C10.0804 10.421 10.1764 10.109 10.3684 9.84229C10.5604 9.57029 10.827 9.35963 11.1684 9.21029C11.515 9.06096 11.915 8.98629 12.3684 8.98629C12.7577 8.98629 13.123 9.04229 13.4644 9.15429C13.8057 9.26629 14.0884 9.42363 14.3124 9.62629L13.9524 10.5383C13.515 10.1916 12.9844 10.0183 12.3604 10.0183C12.0244 10.0183 11.763 10.085 11.5764 10.2183C11.395 10.3463 11.3044 10.5143 11.3044 10.7223C11.3044 10.877 11.3604 11.0023 11.4724 11.0983C11.5844 11.1943 11.779 11.2716 12.0564 11.3303L12.9604 11.5223C13.995 11.7463 14.5124 12.253 14.5124 13.0423C14.5124 13.3943 14.4164 13.7036 14.2244 13.9703C14.0377 14.2316 13.771 14.437 13.4244 14.5863C13.083 14.7303 12.6777 14.8023 12.2084 14.8023Z"
72-
fill="black"
72+
fill="currentColor"
7373
/>
7474
<rect
7575
height="16.8571"
7676
rx="1.71429"
77-
stroke="black"
77+
stroke="currentColor"
7878
strokeWidth="1.14286"
7979
width="16.8571"
8080
x="0.571429"

0 commit comments

Comments
 (0)