This is because a TextStim has no fill color - it’s just text so only has a foreground. For a text stimulus with a fill and border you’d use TextBox2.
It’s essentially inherited fill color / border color attributes from the base visual class, I’ll look into overriding them for TextStim so that the documentation is clearer that these don’t apply to this class