Skip to content

Commit c9e9ef3

Browse files
authored
Add disableHeroBackground property to DocumentationTopic view (#816)
Resolves: rdar://127009817
1 parent a646729 commit c9e9ef3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/DocumentationTopic/Hero/Title.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export default {
3434
@import 'docc-render/styles/_core.scss';
3535

3636
.topictitle {
37+
margin-bottom: rem(12px);
38+
39+
&:last-child {
40+
margin-bottom: 0;
41+
}
42+
3743
@include breakpoint(small) {
3844
margin: 0;
3945
}
@@ -51,7 +57,6 @@ export default {
5157
@include font-styles(headline-reduced);
5258
color: var(--color-documentation-intro-title,
5359
var(--colors-header-text, var(--color-header-text)));
54-
margin-bottom: rem(12px);
5560
}
5661

5762
small {

src/views/DocumentationTopic.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<Topic
2828
v-bind="topicProps"
2929
:key="topicKey"
30+
:disableHeroBackground="disableHeroBackground"
3031
:objcPath="objcPath"
3132
:swiftPath="swiftPath"
3233
:isSymbolDeprecated="isSymbolDeprecated"
@@ -93,6 +94,7 @@ export default {
9394
};
9495
},
9596
computed: {
97+
disableHeroBackground: () => false,
9698
documentationLayoutProps: ({
9799
topicProps: {
98100
diffAvailability,

0 commit comments

Comments
 (0)