diff --git a/app/assets/stylesheets/framework/typography.scss b/app/assets/stylesheets/framework/typography.scss
index ba123ff9a6744ef93a3b9a316613629339e95af8..03ddbfd9194e5bc81ab7721090ad81d65b2ebbe6 100644
--- a/app/assets/stylesheets/framework/typography.scss
+++ b/app/assets/stylesheets/framework/typography.scss
@@ -73,10 +73,6 @@
     summary {
       margin-bottom: $gl-padding;
     }
-
-    *:first-child:not(summary) {
-      margin-top: $gl-padding;
-    }
   }
 
   // Single code lines should wrap
diff --git a/changelogs/unreleased/32396-collapsible-markdown-formatted-weirdly.yml b/changelogs/unreleased/32396-collapsible-markdown-formatted-weirdly.yml
new file mode 100644
index 0000000000000000000000000000000000000000..49ee7ea6c0ac891ca05bedf50cc8f3eee1741e46
--- /dev/null
+++ b/changelogs/unreleased/32396-collapsible-markdown-formatted-weirdly.yml
@@ -0,0 +1,5 @@
+---
+title: Fix css selector for details in issue description
+merge_request: 17557
+author:
+type: fixed