Apply custom style rules for tabs for selected tabs too clearly (related to #788)