(Issue #3857) use css class for icon visibilty