fix #20987: Text style of header is not applied