Selected style should take precedence over hover (fixes #568)