Skip to content

Responsive field classes via table settings don't work for all views of existing sites #7126

@olafgrabienski

Description

@olafgrabienski

Description of the issue

This is a follow-up to issue #3656. @yorkshire-pudding mentioned in a comment that the new UI setting "is not working with Medium priority". Others weren't able to reproduce the issue at that time, and the PR was merged.

When I tested the 1.34 preview release today, I was able to reproduce the issue with Medium priority at the admin/content view.

edit: I noticed the issue on a site which was updated from a previous Backdrop version.

Steps to reproduce:

  • Go to the view, set the Responsive Priority for the Name column to Medium and save the view.
  • Go to admin/content, and narrow the screen.

Actual behavior:

  • At 720px and below, the Name <th> disappears. The corresponding <td> element with the Name values remains.
  • The <td> with the Name values disappears only at 450px and below.

Expected behavior:
Both elements should disappear in the same situation, which should be at 450px and below.

Additional information

When you look at the rendered HTML, note that the <th> element has not only the "priority-medium" class but also "priority-low":

<th class="priority-low priority-medium" ...>
(...)
<td class="priority-medium">

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions