View tables do not inherit correct colors of CERN Theme

Summary

When creating a view table, the header colors are not the correct ones. Normally a table under the CERN theme should get the colors as defined in the color scheme (attachment 1).

However not all colors are applied.

Steps to reproduce

  1. Set some colors
  2. Create a view
  3. Display using table format (include view header)

Possible fixes

Color scheme colors are applied in scss/color/colors.scss. The issue in some cases (eg. view header color) is that .view .view-content * overwrites .view-content table thead th. This happens because .view .view-content * is more specific than .view-content table thead th.

Problem will be fixed if .view wraps .view-content

Attachments

Screenshot_2020-06-02_at_11.12.38 Screenshot_2020-06-02_at_11.21.43

Edited by Konstantinos Platis