You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a bit confused to change the color. And then I try to find the CSS file that control the color.
I just want to say to everyone who need to modify the CSS, this is the default.
Actually this is already documented: "Optionally, import react-svg-map/lib/index.css if you want to apply the default styles".
Instead of using default import "react-svg-map/lib/index.css"; You can save your custom CSS.
It's obvious to me that if you don't want to use the default styles, you can import your custom CSS.
However, I'll add it in the documentation to be more clear.
It will really helps if there is a way to custom the color easier.
I agree that it would be more convenient and I thought about using CSS variables, but they aren't supported by the older browsers, or SCSS variables, but it seemed over-engineered to me (I may reconsider it 🤔).
This project provides simple components with a limited amount of CSS, then the default styles are kinda given as an example and people can easily create their own styles.
I am a bit confused to change the color. And then I try to find the CSS file that control the color. And here it is.
I just want to say to everyone who need to modify the CSS, this is the default.
Instead of using default
import "react-svg-map/lib/index.css";
You can save your custom CSS.It will really helps if there is a way to custom the color easier.
The text was updated successfully, but these errors were encountered: