Skip to content

Commit 9e88870

Browse files
committed
Make return types and args more distinguishable
1 parent fe4f239 commit 9e88870

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

app/components/class-field-description.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{{! template-lint-disable no-invalid-interactive }}
22
<section class='class-field-description {{@type}}'>
33
<h3 id='{{@field.name}}' class="class-field-description--header">
4-
<span class='{{@type}}-name'>{{@field.name}}</span>
5-
{{#if @field.params}}
6-
<span class='args'>
7-
({{join ', ' (map-by 'name' @field.params)}})
4+
<span class="signature">
5+
<span class='{{@type}}-name'>
6+
{{@field.name}}
87
</span>
9-
{{/if}}
10-
{{#if @field.return}}
11-
<span class='return-type'>{{@field.return.type}}</span>
12-
{{/if}}
8+
{{#if @field.params}}(<span class='args'>{{join ', ' (map-by 'name' @field.params)}}</span>){{/if}}
9+
{{#if @field.return}}
10+
: <span class='return-type'>{{@field.return.type}}</span>
11+
{{/if}}
12+
</span>
1313
{{#if @field.access}}
1414
<span class='access'>{{@field.access}}</span>
1515
{{/if}}

app/styles/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ dd {
145145
margin: 0;
146146
}
147147

148+
.class-field-description .args {
149+
font-weight: var(--font-weight-2);
150+
}
151+
148152
.parameter-type,
149153
.class-field-description .return-type,
150154
.return .return-type {

0 commit comments

Comments
 (0)