diff --git a/aio/src/styles/1-layouts/_api-pages.scss b/aio/src/styles/1-layouts/_api-pages.scss
index a2d7809585..8088a71aeb 100644
--- a/aio/src/styles/1-layouts/_api-pages.scss
+++ b/aio/src/styles/1-layouts/_api-pages.scss
@@ -161,13 +161,35 @@
summary {
height: inherit;
- padding: 0 8px 8px;
+ padding: 0 0 8px;
h4 {
margin: 0;
}
+
+ .show-all {
+ display: initial;
+ }
+ .collapse-all {
+ display: none;
+ }
}
- }
+
+ &[open] > summary {
+ .show-all {
+ display: none;
+ }
+ .collapse-all {
+ display: initial;
+ }
+ }
+ }
+
+ details.overload {
+ box-shadow: none;
+ margin: 0;
+ }
+
.from-constructor, .read-only-property {
font-size: 12px;
@@ -248,7 +270,11 @@ details {
padding: 16px 24px;
}
- &[open] > i.material-icons {
- @include rotate(180deg); // Rotate the icon
+ // Rotate the icon
+ summary i.material-icons.expand {
+ @include rotate(0deg);
+ }
+ &[open] > summary i.material-icons.expand {
+ @include rotate(180deg);
}
}
diff --git a/aio/tools/transforms/templates/api/lib/memberHelpers.html b/aio/tools/transforms/templates/api/lib/memberHelpers.html
index c4d991528f..0a15539262 100644
--- a/aio/tools/transforms/templates/api/lib/memberHelpers.html
+++ b/aio/tools/transforms/templates/api/lib/memberHelpers.html
@@ -124,7 +124,11 @@