|
14 | 14 |
|
15 | 15 | <Shw::Text::H4>On its own</Shw::Text::H4>
|
16 | 16 | <Shw::Flex as |SF|>
|
17 |
| - <SF.Item @label="With a FlightIcon as content"> |
| 17 | + <SF.Item @label="With Icon as content"> |
18 | 18 | <Hds::TooltipButton @text="Here is more information" aria-label="Information">
|
19 |
| - <FlightIcon @name="info" /> |
| 19 | + <Hds::Icon @name="info" /> |
20 | 20 | </Hds::TooltipButton>
|
21 | 21 | </SF.Item>
|
22 | 22 |
|
|
48 | 48 | <Shw::Text::H4>Used next to text</Shw::Text::H4>
|
49 | 49 | <p>
|
50 | 50 | <span class="hds-typography-display-300">Lorem ipsum dolor sit amet consectetur</span>
|
51 |
| - <Hds::TooltipButton @text="Here is more info" aria-label="Information"><FlightIcon |
52 |
| - @name="info" |
53 |
| - /></Hds::TooltipButton> |
| 51 | + <Hds::TooltipButton @text="Here is more info" aria-label="Information"> |
| 52 | + <Hds::Icon @name="info" /> |
| 53 | + </Hds::TooltipButton> |
54 | 54 | </p>
|
55 | 55 |
|
56 | 56 | <p class="hds-typography-body-300">
|
57 | 57 | Lorem ipsum dolor sit amet consectetur
|
58 |
| - <Hds::TooltipButton aria-label="more information" @text="Here is more info"><FlightIcon |
59 |
| - @name="info" |
60 |
| - /></Hds::TooltipButton> |
| 58 | + <Hds::TooltipButton aria-label="more information" @text="Here is more info"> |
| 59 | + <Hds::Icon @name="info" /> |
| 60 | + </Hds::TooltipButton> |
61 | 61 | adipisicing elit. Doloremque blanditiis sapiente iste beatae voluptates voluptatum.
|
62 | 62 | </p>
|
63 | 63 |
|
|
73 | 73 | <T.Panel>
|
74 | 74 | <p class="hds-typography-body-300">
|
75 | 75 | Content 1
|
76 |
| - <Hds::TooltipButton @text="Here is more info" aria-label="Information"><FlightIcon |
77 |
| - @name="info" |
78 |
| - /></Hds::TooltipButton> |
| 76 | + <Hds::TooltipButton @text="Here is more info" aria-label="Information"> |
| 77 | + <Hds::Icon @name="info" /> |
| 78 | + </Hds::TooltipButton> |
79 | 79 | </p>
|
80 | 80 | </T.Panel>
|
81 | 81 | <T.Panel><p class="hds-typography-body-300">
|
82 | 82 | Content 2
|
83 |
| - <Hds::TooltipButton @text="Here is more info" aria-label="Information"><FlightIcon |
84 |
| - @name="info" |
85 |
| - /></Hds::TooltipButton> |
| 83 | + <Hds::TooltipButton @text="Here is more info" aria-label="Information"> |
| 84 | + <Hds::Icon @name="info" /> |
| 85 | + </Hds::TooltipButton> |
86 | 86 | </p></T.Panel>
|
87 | 87 | <T.Panel><p class="hds-typography-body-300">
|
88 | 88 | Content 3
|
89 |
| - <Hds::TooltipButton @text="Here is more info" aria-label="Information"><FlightIcon |
90 |
| - @name="info" |
91 |
| - /></Hds::TooltipButton> |
92 |
| - </p></T.Panel> |
| 89 | + <Hds::TooltipButton @text="Here is more info" aria-label="Information"> |
| 90 | + <Hds::Icon @name="info" /> |
| 91 | + </Hds::TooltipButton> |
| 92 | + </p> |
| 93 | + </T.Panel> |
93 | 94 | </Hds::Tabs>
|
94 | 95 | </SF.Item>
|
95 | 96 | <SF.Item @label="Used within an alert">
|
96 | 97 | <Hds::Alert @type="inline" @color="warning" @onDismiss={{this.noop}} as |A|>
|
97 | 98 | <A.Title>Warning</A.Title>
|
98 | 99 | <A.Description>
|
99 | 100 | Caution is advised.
|
100 |
| - <Hds::TooltipButton @text="Be careful with this" aria-label="Information"><FlightIcon |
101 |
| - @name="info" |
102 |
| - /></Hds::TooltipButton> |
| 101 | + <Hds::TooltipButton @text="Be careful with this" aria-label="Information"> |
| 102 | + <Hds::Icon @name="info" /> |
| 103 | + </Hds::TooltipButton> |
103 | 104 | </A.Description>
|
104 | 105 | </Hds::Alert>
|
105 | 106 | </SF.Item>
|
|
114 | 115 | <p class="hds-typography-body-300">
|
115 | 116 | Lorem ipsum dolor sit amet consectetur
|
116 | 117 | <Hds::TooltipButton @text="Here is more info" @isInline={{false}} aria-label="Information">
|
117 |
| - <FlightIcon @name="info" /> |
| 118 | + <Hds::Icon @name="info" /> |
118 | 119 | </Hds::TooltipButton>
|
119 | 120 | adipisicing elit. Doloremque blanditiis sapiente iste beatae voluptates voluptatum.
|
120 | 121 | </p>
|
|
185 | 186 | aria-label="tooltip button example"
|
186 | 187 | @text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
187 | 188 | >
|
188 |
| - <FlightIcon @name="info" /> |
| 189 | + <Hds::Icon @name="info" /> |
189 | 190 | </Hds::TooltipButton>
|
190 | 191 | </div>
|
191 | 192 | </SF.Item>
|
|
262 | 263 | mock-state-value={{state}}
|
263 | 264 | @extraTippyOptions={{hash showOnCreate=true}}
|
264 | 265 | aria-label="Information"
|
265 |
| - ><FlightIcon @name="info" /></Hds::TooltipButton> |
| 266 | + ><Hds::Icon @name="info" /></Hds::TooltipButton> |
266 | 267 | {{else}}
|
267 |
| - <Hds::TooltipButton @text="More info" aria-label="Information" mock-state-value={{state}}><FlightIcon |
268 |
| - @name="info" |
269 |
| - /></Hds::TooltipButton> |
| 268 | + <Hds::TooltipButton @text="More info" aria-label="Information" mock-state-value={{state}}> |
| 269 | + <Hds::Icon @name="info" /> |
| 270 | + </Hds::TooltipButton> |
270 | 271 | {{/if}}
|
271 | 272 | </SF.Item>
|
272 | 273 | {{/each}}
|
|
343 | 344 | @text="<b>Hello</b> <em>there</em>!"
|
344 | 345 | aria-label="Information"
|
345 | 346 | >
|
346 |
| - <FlightIcon @name="info" /> |
| 347 | + <Hds::Icon @name="info" /> |
347 | 348 | </Hds::TooltipButton>
|
348 | 349 |
|
349 | 350 | <Shw::Divider />
|
|
0 commit comments