Skip to content

Commit 8ff6a9e

Browse files
author
markzegarelli
authored
Add required indicator to actions fields (#2559)
1 parent 6544a8c commit 8ff6a9e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/_includes/components/actions-fields.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<tbody>
9797
{% for field in action.fields %}
9898
<tr>
99-
<td>{{field.label}}</td>
99+
<td>{{field.label}}{% if field.required %}<span class="required" title="This field is required">*</span>{% endif %}</td>
100100
<td>{% if field.type %}Type: <code>{{field.type}}</code><br />{%endif%}{{field.description | markdownify}}</td>
101101
</tr>
102102
{%endfor%}

src/_sass/components/_markdown.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,3 +430,9 @@ div.highlighter-rouge {
430430
.table-code-snippet {
431431
max-width: 450px;
432432
}
433+
434+
.required {
435+
color: black;
436+
font-weight: bold;
437+
margin-left: 3px
438+
}

0 commit comments

Comments
 (0)