Skip to content

Commit f283565

Browse files
author
Tim Bannister
committed
Set a title for feature gates in the table
If you hover over a feature gate name, you (now) see the text description. At least in typical web browsers.
1 parent 8aecf06 commit f283565

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layouts/shortcodes/feature-gate-table.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
{{- end -}}
7878
{{- end -}}
7979

80+
{{- $featureDescription := $featureGateFile.Content | plainify -}}
81+
8082
{{- range $featureGate := $featureGateFile.Params.stages -}}
8183
<!-- Check if the 'stage' value is valid -->
8284
{{- $validStages := slice "alpha" "beta" "stable" "deprecated" -}}
@@ -101,7 +103,7 @@
101103

102104
<!-- Display feature gate information in table rows -->
103105
<tr>
104-
<td><code>{{- $featureGateName -}}</code></td>
106+
<td><code title="{{- $featureDescription -}}">{{- $featureGateName -}}</code></td>
105107
<td>{{- if isSet $featureGate "defaultValue" -}}<code>{{- $featureGate.defaultValue -}}</code>{{- else -}}–{{- end -}}</td>
106108
<td>{{- T (printf "feature_gate_stage_%s" $featureGate.stage) -}}</td>
107109
<td>{{- $featureGate.fromVersion -}}</td>

0 commit comments

Comments
 (0)