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

Render attribute help text tooltip in sw direction

Alexander Brandon Coles6b7830b1124c
diff --git a/app/components/open_project/common/attribute_help_text_component.rb b/app/components/open_project/common/attribute_help_text_component.rb
index 85e191c7444..fb205eaf2df 100644
--- a/app/components/open_project/common/attribute_help_text_component.rb
+++ b/app/components/open_project/common/attribute_help_text_component.rb
@@ -50,7 +50,7 @@ module OpenProject
for_id: @system_arguments[:id],
type: :label,
text: I18n.t("js.help_texts.show_modal"),
- direction: :e
+ direction: :sw
)
@system_arguments[:aria] ||= {}
@system_arguments[:aria][:labelledby] = @tooltip.id
diff --git a/spec/components/open_project/common/attribute_help_text_component_spec.rb b/spec/components/open_project/common/attribute_help_text_component_spec.rb
index cdf3bd5cf72..e6151c3ee1d 100644
--- a/spec/components/open_project/common/attribute_help_text_component_spec.rb
+++ b/spec/components/open_project/common/attribute_help_text_component_spec.rb
@@ -48,7 +48,7 @@ RSpec.describe OpenProject::Common::AttributeHelpTextComponent, type: :component
expect(subject).to have_element "tool-tip", text: "Show attribute help text entry",
for: /attribute-help-text-component-\d+/,
popover: "manual",
- "data-direction": "e",
+ "data-direction": "sw",
"data-type": "label"
end