diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 9d72e1d0d6e75a7b0f2b16c904e1c95dea1219fb..72cc07b13a52332fb82eafdc95a4105858c560c2 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -7,7 +7,7 @@ def project_incident_management_setting
   end
 
   def link_to_project(project)
-    link_to namespace_project_path(namespace_id: project.namespace, id: project), title: h(project.name) do
+    link_to namespace_project_path(namespace_id: project.namespace, id: project), title: h(project.name), class: 'gl-link' do
       title = content_tag(:span, project.name, class: 'project-name')
 
       if project.namespace
diff --git a/app/views/projects/forks/error.html.haml b/app/views/projects/forks/error.html.haml
index 5d527f1bcfbcd22c05dc9f058bfadab06b1fa84d..0c15796b667ec588b3c0d9afd393e9676234ec3a 100644
--- a/app/views/projects/forks/error.html.haml
+++ b/app/views/projects/forks/error.html.haml
@@ -1,20 +1,22 @@
 - page_title _("Fork project")
 - if @forked_project && !@forked_project.saved?
-  .alert.alert-danger.alert-block
-    %h4
+  .gl-alert.gl-alert-danger.gl-mt-5
+    = sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon')
+    %h4.gl-alert-title
       = sprite_icon('fork')
       = _("Fork Error!")
-    %p
-      = _("You tried to fork %{link_to_the_project} but it failed for the following reason:").html_safe % { link_to_the_project: link_to_project(@project) }
-
-    - if @forked_project && @forked_project.errors.any?
+    .gl-alert-body
       %p
-        –
-        - error = @forked_project.errors.full_messages.first
-        - if error.include?("already been taken")
-          = _("Name has already been taken")
-        - else
-          = error
+        = _("You tried to fork %{link_to_the_project} but it failed for the following reason:").html_safe % { link_to_the_project: link_to_project(@project) }
+
+      - if @forked_project && @forked_project.errors.any?
+        %p
+          –
+          - error = @forked_project.errors.full_messages.first
+          - if error.include?("already been taken")
+            = _("Name has already been taken")
+          - else
+            = error
 
-    %p
-      = link_to _("Try to fork again"), new_project_fork_path(@project), title: _("Fork"), class: "btn"
+      .gl-alert-actions
+        = link_to _("Try to fork again"), new_project_fork_path(@project), title: _("Fork"), class: "btn gl-alert-action btn-info btn-md gl-button"
diff --git a/changelogs/unreleased/233703-replace-bootstrap-alerts-in-app-views-projects-forks-error-html-ha.yml b/changelogs/unreleased/233703-replace-bootstrap-alerts-in-app-views-projects-forks-error-html-ha.yml
new file mode 100644
index 0000000000000000000000000000000000000000..e9ed91a58abaa7845bc96500140795d4fb63f092
--- /dev/null
+++ b/changelogs/unreleased/233703-replace-bootstrap-alerts-in-app-views-projects-forks-error-html-ha.yml
@@ -0,0 +1,5 @@
+---
+title: Replace bootstrap alerts in app/views/projects/forks/error.html.haml
+merge_request: 41292
+author: Gilang Gumilar
+type: changed