Use @data-type instead of @class for label <span>s.