Problem/Motivation

When i edit a view i found an issue in exposed filter. UI of exposed filter is breaking. Adding screenshot of the issue.

Proposed resolution

Apply the exposed form css that comes with the Views module to the Views UI preview form.

Remaining tasks

  • Write a patch
  • Add screenshots
  • Review

API changes

None

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because the issue reports a visual regression in a single component
Issue priority Normal because the regression does not affect the functionality of the component
Unfrozen changes Unfrozen because it only changes css
Prioritized changes This is a prioritized issue because it is a bugfix
Disruption Not disruptive
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Vidushi Mehta’s picture

FileSize
520 bytes
moonpeak’s picture

Yes, this is an issue visible on drupal 8 core. Views Exposed filters UI is breaking.

idebr’s picture

Title: Exposed Filter UI is breaking » Views UI: Exposed Filter css is not applied
Issue summary: View changes
Status: Needs work » Needs review
FileSize
2.05 KB
189.87 KB

I applied the css that comes with views/views.exposed_form to the Views UI preview. For the css to apply correctly, i had to make some selectors for the arguments textfield more strict.

Screenshot after:
2396465-3-after

jibran’s picture

Issue tags: +VDC

Can we have RTL screenshot?

idebr’s picture

FileSize
193.54 KB

Screenshot after (rtl):

jibran’s picture

Status: Needs review » Reviewed & tested by the community

Thanks

Vidushi Mehta’s picture

I have reviewed the #3 patch.And its resolving the Exposed Filter issue.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: views_ui-exposed-filters-preview-2396465-3.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Postponed

In #2333719: Abstract Views Exposed Form styling out into a reusable class We are making the exposed filter CSS reusable so it can be reapplied to multiple situations. If we postpone this issue until that one is commited then all we would need to do is add that class to the preview form. How does that sound?

idebr’s picture

Status: Postponed » Needs review
Issue tags: +Regression
FileSize
251.57 KB
244.82 KB
257.69 KB
2.05 KB
606 bytes

@LewisNyman This patch fixes a current regression in the Views UI so I'd prefer it take priority over a task to make css in the Views UI more abstract.

The only overlap from this patch with #2333719: Abstract Views Exposed Form styling out into a reusable class is addition of the views.exposed-form library, you could leave the removal of the library for a followup and postpone the followup on this issue?

I have rerolled the patch against the latest HEAD.

Screenshot before:

Screenshot after:

Screenshot after (rtl):

LewisNyman’s picture

@idebr Sounds good to me. I'll review this when I have more time this week unless someone beats me to it.

idebr’s picture

Status: Needs review » Reviewed & tested by the community

I believe this can go back to RTBC per #6 and #7 and the last change was a reroll, but please correct me if I am wrong.

idebr’s picture

Issue summary: View changes

Added a beta evaluation.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed b54a2c9 and pushed to 8.0.x. Thanks!

Thanks for adding the beta evaluation to the summary.

  • alexpott committed b54a2c9 on 8.0.x
    Issue #2396465 by idebr, Vidushi Mehta: Views UI: Exposed Filter css is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.