core\themes\classy\css\components\file.css conflicts with Views' own css

Created on 7 August 2018, over 6 years ago
Updated 23 February 2023, almost 2 years ago

Problem/Motivation

In some circumstances core\themes\classy\css\components\file.css is loaded when editing a view and it conflicts with the views' own css at some dialogs, because both have rules for .file selector.

Assuming your admin theme is Seven (which is Classy's sub theme).

At least in a case like this, the file.css gets loaded:

Steps to reproduce

1) Add a file field to Article, call it Video, configure it to accept for example mp4 files.
2) Create an Article node and upload a Video to it.
3) Create a view that shows a listing of those Video fields.
4) Create a Relationship to the Video (Video (field_video:target_id))
5) Make sure your Preview is listing at least one node with a Video field, the formatter doesn't matter.
6) Go to for example add fields, the formatting of the fields list is crooked.

Proposed resolution

TBA

Remaining tasks

Check for duplicates
Patch
Review
Commit

User interface changes

Before

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.1

Component
Views UI 

Last updated 21 days ago

Created by

🇫🇮Finland kari.kaariainen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    I tested this on Drupal 10.1.x, standard install. I followed the steps in the issue summary and reproduced the problem.

    I added the standard template to the Issue Summary.

Production build 0.71.5 2024