Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#61937] moved css to parent node

Eric Schubert385f453b616e
diff --git a/app/components/work_package_types/pattern_input.html.erb b/app/components/work_package_types/pattern_input.html.erb
index 5156e296944..2b2f98649d7 100644
--- a/app/components/work_package_types/pattern_input.html.erb
+++ b/app/components/work_package_types/pattern_input.html.erb
@@ -106,7 +106,14 @@ See COPYRIGHT and LICENSE files for more details.
)
)
%>
- <%= render(Primer::BaseComponent.new(tag: :div, box_shadow: :medium, border_radius: 2)) do %>
+ <%=
+ render Primer::BaseComponent.new(
+ tag: :div,
+ box_shadow: :medium,
+ classes: "op-pattern-input--suggestions-dropdown",
+ border_radius: 2
+ ) do
+ %>
<focus-group direction="vertical">
<%= render(suggestions_list_component) %>
</focus-group>
diff --git a/app/components/work_package_types/pattern_input.rb b/app/components/work_package_types/pattern_input.rb
index 15c80735a23..e65b5404ad8 100644
--- a/app/components/work_package_types/pattern_input.rb
+++ b/app/components/work_package_types/pattern_input.rb
@@ -49,7 +49,6 @@ module WorkPackageTypes
@suggestions_list_component ||= Primer::Alpha::ActionList.new(
role: :list,
scheme: :inset,
- classes: "op-pattern-input--suggestions-dropdown",
ml: 0,
data: {
"pattern-input-target": "suggestions"