Black text not visible #5291

Issue #5291 black text not visible

Optimized code