Skip to content

Commit b7ec83e

Browse files
Merge branch 'milestone/13.2' of github-corbalt:CMSgov/design-system into milestone/13.2
2 parents 59769c2 + 13f4add commit b7ec83e

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

examples/angular/src/app/app.component.html

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,20 @@ <h2 class="ds-text-heading--4xl ds-u-margin-top--2">Drawer</h2>
216216
[drawerHeading]="drawerHeading"
217217
(ds-close-click)="closeDrawer()"
218218
>
219-
<strong> An Explanation <ds-usa-flag-icon /></strong>
219+
<strong>
220+
An Explanation
221+
<ds-tooltip
222+
class-name="ds-c-tooltip__trigger-icon ds-u-display--inline"
223+
component="button"
224+
root-id="1"
225+
trigger-aria-label="An icon of a flag of the United States of America."
226+
>
227+
<ds-usa-flag-icon />
228+
<div slot="title">
229+
<p>Testing a tooltip inside of a &lt;ds-drawer&gt; element.</p>
230+
</div>
231+
</ds-tooltip>
232+
</strong>
220233
<p>
221234
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
222235
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
@@ -292,5 +305,19 @@ <h2 class="ds-text-heading--4xl ds-u-margin-top--2">Third Party External Link</h
292305
>
293306
Link to external site
294307
</app-third-party-external-link>
308+
309+
<h2 class="ds-text-heading--4xl ds-u-margin-top--2">Tooltip</h2>
310+
<p class="ds-u-margin--0 ds-u-display--inline">Tooltip with icon trigger</p>
311+
<ds-tooltip
312+
class-name="ds-c-tooltip__trigger-icon ds-u-display--inline"
313+
component="button"
314+
root-id="1"
315+
trigger-aria-label="This is the aria label."
316+
>
317+
<ds-tooltip-icon />
318+
<div slot="title">
319+
<p>Tooltip trigger uses &lt;ds-tooltip-icon&gt; for the trigger content</p>
320+
</div>
321+
</ds-tooltip>
295322
</main>
296323
</div>

0 commit comments

Comments
 (0)