Skip to content

Commit c6fc857

Browse files
author
Lauren McCarthy
committed
changing display of optional params closes #1955
1 parent e68fe93 commit c6fc857

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/yuidoc-p5-theme-src/scripts/tpl/item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h4>Parameters</h4>
116116
<td>
117117
<% var p = item.params[i] %>
118118
<% if (p.optional) { %>
119-
<code class="language-javascript">[<%=p.name%>]</code>
119+
<code class="language-javascript param-optional"><%=p.name%></code>
120120
<% } else { %>
121121
<code class="language-javascript"><%=p.name%></code>
122122
<% } %>

docs/yuidoc-p5-theme/assets/reference.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@
2121

2222
font-size: inherit;
2323
}
24+
25+
#reference .param-optional {
26+
color: #AFAFAF;
27+
}

0 commit comments

Comments
 (0)