Skip to content

Commit 5f6842f

Browse files
committed
Merge pull request #673 from dart-lang/consistent-const
show const below name, like other places
2 parents df59254 + fed3163 commit 5f6842f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/resources/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ dl dt.callable .name {
238238
font-style: italic;
239239
}
240240

241+
.is-const {
242+
font-style: italic;
243+
}
244+
241245
.deprecated {
242246
text-decoration: line-through;
243247
}

lib/templates/_constant.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<dt id="{{htmlId}}" class="constant">
2-
<span class="top-level-variable-type">const {{{ linkedReturnType }}}</span>
2+
<span class="top-level-variable-type">{{{ linkedReturnType }}}</span>
33
<span class="name {{#isDeprecated}}deprecated{{/isDeprecated}}">{{{ linkedName }}}</span>
44
=
55
<span class="constant-value">{{{ constantValue }}}</span>
66
</dt>
77
<dd>
8+
<div class="is-const">
9+
const
10+
</div>
811
{{{ oneLineDoc }}}
9-
</dd>
12+
</dd>

0 commit comments

Comments
 (0)