There definitely is a trend away from gritty campaign settings which feature "bad things" like inequality, racism, crude and unfair laws, feudalism, slavery and serfdom, etc.
However, those bad things can be important tools to transport the story into "another time". I can only speak for...