Fixes #5018 adds an additional class option for widgets