|
1 | | -<link rel="stylesheet" href="demo.css"> |
2 | | -<script type="module" src="pf-alert.js"></script> |
| 1 | +<link rel="stylesheet" href="demo.css"><script type="module" src="pf-alert.js"></script> |
3 | 2 |
|
4 | 3 | <pf-alert header="Default alert title"></pf-alert> |
5 | 4 | <pf-alert variant="info" header="Info alert title"></pf-alert> |
6 | 5 | <pf-alert variant="success" header="Success alert title"></pf-alert> |
7 | 6 | <pf-alert variant="warning" header="Warning alert title"></pf-alert> |
8 | 7 | <pf-alert variant="danger" header="Danger alert title"></pf-alert> |
9 | 8 |
|
10 | | -<h1> |
11 | | - Alert Variations |
12 | | -</h1> |
| 9 | +<h2> |
| 10 | + Alert Variations |
| 11 | +</h2> |
13 | 12 |
|
14 | 13 | <pf-alert header="Success alert title" variant="success" dismissable> |
15 | 14 | <p>Success alert description. This should tell the user more information about the alert.</p> |
|
41 | 40 |
|
42 | 41 | <pf-alert header="Success alert title" variant="success" dismissable></pf-alert> |
43 | 42 |
|
44 | | -<h1> |
| 43 | +<h2> |
45 | 44 | Default Icons |
46 | | -</h1> |
| 45 | +</h2> |
47 | 46 |
|
48 | 47 | <pf-alert header="Custom icon"> |
49 | 48 | <pf-icon slot="icon" set="fas" icon="users" loading="idle"></pf-icon> |
|
61 | 60 | <pf-icon slot="icon" set="fas" icon="laptop" loading="idle"></pf-icon> |
62 | 61 | </pf-alert> |
63 | 62 |
|
64 | | -<h1> |
| 63 | +<h2> |
65 | 64 | Plain |
66 | | -</h1> |
| 65 | +</h2> |
67 | 66 |
|
68 | 67 | <pf-alert header="Default plain" plain></pf-alert> |
69 | 68 | <pf-alert variant="info" header="Info plain" plain></pf-alert> |
|
74 | 73 | <pf-alert variant="warning" header="Warning plain" plain></pf-alert> |
75 | 74 | <pf-alert variant="danger" header="Danger plain" plain></pf-alert> |
76 | 75 |
|
77 | | -<h1> |
| 76 | +<h2> |
78 | 77 | Inline |
79 | | -</h1> |
| 78 | +</h2> |
80 | 79 |
|
81 | 80 | <pf-alert header="Default inline" inline></pf-alert> |
82 | 81 | <pf-alert variant="info" header="Info inline" inline></pf-alert> |
83 | 82 | <pf-alert variant="success" header="Success inline" inline></pf-alert> |
84 | 83 | <pf-alert variant="warning" header="Warning inline" inline></pf-alert> |
85 | 84 | <pf-alert variant="danger" header="Danger inline" inline></pf-alert> |
86 | 85 |
|
87 | | -<h1> |
| 86 | +<h2> |
88 | 87 | Plain |
89 | | -</h1> |
| 88 | +</h2> |
90 | 89 |
|
91 | 90 | <pf-alert header="Default inline" plain></pf-alert> |
92 | 91 | <pf-alert variant="info" header="Info inline" plain></pf-alert> |
93 | 92 | <pf-alert variant="success" header="Success inline" plain></pf-alert> |
94 | 93 | <pf-alert variant="warning" header="Warning inline" plain></pf-alert> |
95 | 94 | <pf-alert variant="danger" header="Danger inline" plain></pf-alert> |
96 | 95 |
|
97 | | -<h1> |
| 96 | +<h2> |
98 | 97 | Inline Plain |
99 | | -</h1> |
| 98 | +</h2> |
100 | 99 |
|
101 | 100 | <pf-alert header="Default inline" inline plain></pf-alert> |
102 | 101 | <pf-alert variant="info" header="Info inline" inline plain></pf-alert> |
103 | 102 | <pf-alert variant="success" header="Success inline" inline plain></pf-alert> |
104 | 103 | <pf-alert variant="warning" header="Warning inline" inline plain></pf-alert> |
105 | 104 | <pf-alert variant="danger" header="Danger inline" inline plain></pf-alert> |
106 | 105 |
|
107 | | -<h1> |
| 106 | +<h2> |
108 | 107 | Truncated Title |
109 | | -</h1> |
| 108 | +</h2> |
110 | 109 |
|
111 | 110 | <pf-alert style="width:100px;" truncate-title header="It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of light, it was the season of darkness, it was the spring of hope, it was the winter of despair."></pf-alert> |
112 | 111 |
|
113 | | -<h1> |
| 112 | +<h2> |
114 | 113 | Timeout |
115 | | -</h1> |
| 114 | +</h2> |
116 | 115 |
|
117 | 116 | <pf-button id="create-timeout-alert">Create default timeout alert</pf-button> |
118 | 117 | <pf-button id="create-timeout-inline-alert">Create inline timeout alert</pf-button> |
|
0 commit comments