Skip to content

Commit

Permalink
Flag deprecated properties (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrowley authored Apr 29, 2020
1 parent bf7388a commit a054e95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion partials/schema-prop.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="{% if open %}is-open{% endif %}">
<div class="{% if prop | isExpandable %}js-prop cursor-pointer py-2{% endif %} flex property">
<div class="pr-4" style="margin-top:-2px; min-width: 25%;">
<span class="text-sm {% if specialName %}italic text-grey{% endif %}" style="word-break: break-word;">{{propName}}</span>
<span class="text-sm{% if specialName %} italic text-grey{% endif %}{% if prop.deprecated() %} line-through{% endif %}" style="word-break: break-word;">{{propName}}</span>
{% if prop | isExpandable %}
<svg class="expand" version="1.1" viewBox="0 0 24 24" x="0"
xmlns="http://www.w3.org/2000/svg" y="0">
Expand All @@ -16,6 +16,9 @@
{% if required %}
<div class="text-red-dark text-xs">required</div>
{% endif %}
{% if prop.deprecated() %}
<div class="text-red-dark text-xs">deprecated</div>
{% endif %}
</div>

<div>
Expand Down

0 comments on commit a054e95

Please sign in to comment.