I'm not going to delve into the code too much in this question, instead, I'm looking for a high-level answer.
In my js, I have a div with the class name potato. I have a file called myStyles.css, and I imported that CSS file into my js file. Now in my CSS, I targeted .potato, and do my styling. All good so far.
Now I create a new js file, and in that new file I again have a div name by potato. In this new js file, I do not import myStyles.css. However, for some reason, the styling from myStyles.css is being applied to that div!
Please let me know why this is the case? Why is it pulling styling from an unimported file?
If you need any actual code on my part to answer this question, please let me know and I can provide it.
Thanks!