Fix: Map icon color in dark mode

When toggling to dark mode, all the icons in the dropdown button change to white in the list view, except for the map icon, which remains black.

Upon reviewing the code for this icon, I found that it had a fixed white color assigned (stroke=#111). I replaced it with the variable color value var(--icon-stroke) to ensure it changes appropriately with the theme toggle.
This commit is contained in:
El-Shafei H 2024-07-09 11:53:54 +03:00 committed by GitHub
parent 32ecbcca84
commit 0ebe4a2448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -419,7 +419,7 @@
</symbol>
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="icon-map">
<g stroke="#111" stroke-miterlimit="10">
<g stroke="var(--icon-stroke)" stroke-miterlimit="10">
<path d="M11.467 3.458c1.958 1.957 1.958 5.088.027 7.02L7.97 14l-3.523-3.523a4.945 4.945 0 010-6.993l.026-.026a4.922 4.922 0 016.993 0zm0 0c-.026-.026-.026-.026 0 0z"></path>
<path d="M7.971 8.259a1.305 1.305 0 100-2.61 1.305 1.305 0 000 2.61z"></path>
</g>

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 114 KiB