Skip to content

Commit bd2d03c

Browse files
authored
Merge pull request #3204 from projectblacklight/constraint-margin
Explicitly set the margin class on the constraint component
2 parents 4059d89 + 0e4b4d1 commit bd2d03c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/assets/stylesheets/blacklight/_constraints.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
}
77

88
.applied-filter {
9-
@extend .mx-1;
10-
119
.constraint-value {
1210
cursor: default;
1311
text-overflow: ellipsis;

app/components/blacklight/constraint_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Blacklight
44
class ConstraintComponent < Blacklight::Component
55
with_collection_parameter :facet_item_presenter
66

7-
def initialize(facet_item_presenter:, classes: 'filter', layout: Blacklight::ConstraintLayoutComponent)
7+
def initialize(facet_item_presenter:, classes: %w[filter mx-1], layout: Blacklight::ConstraintLayoutComponent)
88
@facet_item_presenter = facet_item_presenter
99
@classes = classes
1010
@layout = layout

0 commit comments

Comments
 (0)