I had almost the opposite experience. The textbooks barely mentioned slavery in the context of the war, besides the freeing of slaves after the war. The book said it was all about states rights. But our teachers did tell us it was mostly about slavery.
But I did grow up in the south, so much so that my middle school was pretty much segregated when I was there in the mid 00’s. What a shithole