Skip to content

Commit 1e8fc6e

Browse files
committed
Made showcase and API description tweaks for clarity
1 parent dc93906 commit 1e8fc6e

File tree

1 file changed

+11
-7
lines changed
  • packages/components/tests/dummy/app/templates/components

1 file changed

+11
-7
lines changed

packages/components/tests/dummy/app/templates/components/alert.hbs

+11-7
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757

5858
<dt class="dummy-indent">icon <code>string</code></dt>
5959
<dd class="dummy-indent">
60-
<p>Shows an icon in the alert. Optional parameter.</p>
60+
<p>Override the default
61+
<code class="dummy-code">icon</code>
62+
name determined by the
63+
<code class="dummy-code">color</code>. Optional parameter.
64+
</p>
6165
<p>Acceptable value:</p>
6266
<p>Any
6367
<a href="https://flight-hashicorp.vercel.app/" target="_blank" rel="noopener noreferrer">
@@ -195,6 +199,8 @@
195199
/>
196200
<br />
197201

202+
Icon override variation:
203+
198204
<Hds::Alert
199205
@color="critical"
200206
@icon="meh"
@@ -207,14 +213,13 @@
207213
/>
208214
<br />
209215

210-
Other variations:
216+
Title/description variations:
211217

212-
<Hds::Alert @color="critical" @icon="alert-triangle" @description="Description only please" />
218+
<Hds::Alert @color="success" @description="Description only please" />
213219
<br />
214220

215221
<Hds::Alert
216-
@color="neutral"
217-
@icon="alert-triangle"
222+
@color="success"
218223
@title="Really long title, yet no description. Your Intention settings are currently set to default allow. This
219224
means that this view will show connections to every service in your
220225
cluster. We recommend changing your Intention settings to default deny and
@@ -224,8 +229,7 @@
224229
<br />
225230

226231
<Hds::Alert
227-
@color="highlight"
228-
@icon="alert-triangle"
232+
@color="success"
229233
@title="Description below has HTML"
230234
@description="Your Intention settings are currently set to default <strong>allow</strong>. This
231235
means that this view will show connections to every service in your

0 commit comments

Comments
 (0)