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

Avoid use of IDs by using the DOM structure

Aaron Contrerasb30eef6805fa
diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erb
index 2e1abc0e5c3..f76fc104dfa 100644
--- a/app/views/account/_register.html.erb
+++ b/app/views/account/_register.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="modal-delivery-element">
- <%= labelled_tabular_form_for(@user, url: account_register_path, html: { class: 'form -wide-labels spot-modal', id: 'register-form' }) do |f| %>
+ <%= labelled_tabular_form_for(@user, url: account_register_path, html: { class: 'form -wide-labels spot-modal' }) do |f| %>
<%= back_url_hidden_field_tag use_referer: false %>
<%= error_messages_for :user %>
<div id="spotModalTitle" class="spot-modal--header">
diff --git a/frontend/src/global_styles/content/_accounts.sass b/frontend/src/global_styles/content/_accounts.sass
index a1578704326..91b8bfbde00 100644
--- a/frontend/src/global_styles/content/_accounts.sass
+++ b/frontend/src/global_styles/content/_accounts.sass
@@ -120,6 +120,5 @@
&--agreement
font-size: inherit
-#register-form
- .login-auth-provider-list
- margin-top: 1em
+.login-auth-providers-title ~ .login-auth-provider-list
+ margin-top: 1em