|
3 | 3 | --- |
4 | 4 | {% extends 'component.njk' %} |
5 | 5 | {% block content %} |
6 | | -<!-- explanation goes here --> |
| 6 | + <section> |
| 7 | + <h2 class="hxSectionTitle" id="default">Default</h2> |
7 | 8 |
|
8 | | -<section> |
9 | | - <h2 class="hxSectionTitle" id="default">Default</h2> |
10 | | - |
11 | | - <div class="demo"> |
12 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
13 | | - <div class="hxAlert"> |
14 | | - <div class="hxAlert__icon"> |
15 | | - <hx-icon type="info-circle"></hx-icon> |
16 | | - </div> |
17 | | - <div class="hxAlert__text"> |
18 | | - <span class="hxAlert__status">Info</span> |
19 | | - Here is helpful information. |
20 | | - </div> |
21 | | - <div class="hxAlert__action"> |
22 | | - <a href="#">Acknowledge</a> |
| 9 | + <div class="demo"> |
| 10 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 11 | + <div class="hxAlert"> |
| 12 | + <div class="hxAlert__icon"> |
| 13 | + <hx-icon type="info-circle"></hx-icon> |
| 14 | + </div> |
| 15 | + <div class="hxAlert__text"> |
| 16 | + <span class="hxAlert__status">Info</span> |
| 17 | + Here is helpful information. |
| 18 | + </div> |
| 19 | + <div class="hxAlert__action"> |
| 20 | + <a href="#">Acknowledge</a> |
| 21 | + </div> |
| 22 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
23 | 23 | </div> |
24 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
25 | 24 | </div> |
26 | 25 | </div> |
27 | | - </div> |
28 | | - {% code 'html' %} |
29 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
30 | | - <div class="hxAlert"> |
31 | | - <div class="hxAlert__icon"> |
32 | | - <hx-icon type="info-circle"></hx-icon> |
| 26 | + {% code 'html' %} |
| 27 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 28 | + <div class="hxAlert"> |
| 29 | + <div class="hxAlert__icon"> |
| 30 | + <hx-icon type="info-circle"></hx-icon> |
| 31 | + </div> |
| 32 | + <div class="hxAlert__text"> |
| 33 | + <span class="hxAlert__status">Info</span> |
| 34 | + Here is helpful information. |
| 35 | + </div> |
| 36 | + <div class="hxAlert__action"> |
| 37 | + <a href="#">Acknowledge</a> |
| 38 | + </div> |
| 39 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
33 | 40 | </div> |
34 | | - <div class="hxAlert__text"> |
35 | | - <span class="hxAlert__status">Info</span> |
36 | | - Here is helpful information. |
37 | | - </div> |
38 | | - <div class="hxAlert__action"> |
39 | | - <a href="#">Acknowledge</a> |
40 | | - </div> |
41 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
42 | 41 | </div> |
43 | | - </div> |
44 | | - {% endcode %} |
45 | | -</section> |
| 42 | + {% endcode %} |
| 43 | + </section> |
46 | 44 |
|
47 | | -<section> |
48 | | - <h2 class="hxSectionTitle" id="error">Error</h2> |
| 45 | + <section> |
| 46 | + <h2 class="hxSectionTitle" id="error">Error</h2> |
49 | 47 |
|
50 | | - <div class="demo"> |
51 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
52 | | - <div class="hxAlert hxAlert--error"> |
53 | | - <div class="hxAlert__icon"> |
54 | | - <hx-icon type="exclamation-circle"></hx-icon> |
| 48 | + <div class="demo"> |
| 49 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 50 | + <div class="hxAlert hxAlert--error"> |
| 51 | + <div class="hxAlert__icon"> |
| 52 | + <hx-icon type="exclamation-circle"></hx-icon> |
| 53 | + </div> |
| 54 | + <div class="hxAlert__text"> |
| 55 | + <span class="hxAlert__status">Error</span> |
| 56 | + Change a few things up and try submitting again. |
| 57 | + </div> |
| 58 | + <div class="hxAlert__action"> |
| 59 | + <a href="#">Correct Issue</a> |
| 60 | + </div> |
| 61 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
55 | 62 | </div> |
56 | | - <div class="hxAlert__text"> |
57 | | - <span class="hxAlert__status">Error</span> |
58 | | - Change a few things up and try submitting again. |
59 | | - </div> |
60 | | - <div class="hxAlert__action"> |
61 | | - <a href="#">Correct Issue</a> |
62 | | - </div> |
63 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
64 | 63 | </div> |
65 | 64 | </div> |
66 | | - </div> |
67 | | - {% code 'html' %} |
68 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
69 | | - <div class="hxAlert hxAlert--error"> |
70 | | - <div class="hxAlert__icon"> |
71 | | - <hx-icon type="exclamation-circle"></hx-icon> |
72 | | - </div> |
73 | | - <div class="hxAlert__text"> |
74 | | - <span class="hxAlert__status">Error</span> |
75 | | - Change a few things up and try submitting again. |
| 65 | + {% code 'html' %} |
| 66 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 67 | + <div class="hxAlert hxAlert--error"> |
| 68 | + <div class="hxAlert__icon"> |
| 69 | + <hx-icon type="exclamation-circle"></hx-icon> |
| 70 | + </div> |
| 71 | + <div class="hxAlert__text"> |
| 72 | + <span class="hxAlert__status">Error</span> |
| 73 | + Change a few things up and try submitting again. |
| 74 | + </div> |
| 75 | + <div class="hxAlert__action"> |
| 76 | + <a href="#">Correct Issue</a> |
| 77 | + </div> |
| 78 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
76 | 79 | </div> |
77 | | - <div class="hxAlert__action"> |
78 | | - <a href="#">Correct Issue</a> |
79 | | - </div> |
80 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
81 | 80 | </div> |
82 | | - </div> |
83 | | - {% endcode %} |
84 | | -</section> |
| 81 | + {% endcode %} |
| 82 | + </section> |
85 | 83 |
|
86 | | -<section> |
87 | | - <h2 class="hxSectionTitle" id="warning">Warning</h2> |
| 84 | + <section> |
| 85 | + <h2 class="hxSectionTitle" id="warning">Warning</h2> |
88 | 86 |
|
89 | | - <div class="demo"> |
90 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
91 | | - <div class="hxAlert hxAlert--warning"> |
92 | | - <div class="hxAlert__icon"> |
93 | | - <hx-icon type="exclamation-triangle"></hx-icon> |
| 87 | + <div class="demo"> |
| 88 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 89 | + <div class="hxAlert hxAlert--warning"> |
| 90 | + <div class="hxAlert__icon"> |
| 91 | + <hx-icon type="exclamation-triangle"></hx-icon> |
| 92 | + </div> |
| 93 | + <div class="hxAlert__text"> |
| 94 | + <span class="hxAlert__status">Warning</span> |
| 95 | + Best check yo self, you're not looking too good. |
| 96 | + </div> |
| 97 | + <div class="hxAlert__action"> |
| 98 | + <a href="#">Double Check</a> |
| 99 | + </div> |
| 100 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
94 | 101 | </div> |
95 | | - <div class="hxAlert__text"> |
96 | | - <span class="hxAlert__status">Warning</span> |
97 | | - Best check yo self, you're not looking too good. |
98 | | - </div> |
99 | | - <div class="hxAlert__action"> |
100 | | - <a href="#">Double Check</a> |
101 | | - </div> |
102 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
103 | 102 | </div> |
104 | 103 | </div> |
105 | | - </div> |
106 | | - {% code 'html' %} |
107 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
108 | | - <div class="hxAlert hxAlert--warning"> |
109 | | - <div class="hxAlert__icon"> |
110 | | - <hx-icon type="exclamation-triangle"></hx-icon> |
111 | | - </div> |
112 | | - <div class="hxAlert__text"> |
113 | | - <span class="hxAlert__status">Warning</span> |
114 | | - Best check yo self, you're not looking too good. |
| 104 | + {% code 'html' %} |
| 105 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 106 | + <div class="hxAlert hxAlert--warning"> |
| 107 | + <div class="hxAlert__icon"> |
| 108 | + <hx-icon type="exclamation-triangle"></hx-icon> |
| 109 | + </div> |
| 110 | + <div class="hxAlert__text"> |
| 111 | + <span class="hxAlert__status">Warning</span> |
| 112 | + Best check yo self, you're not looking too good. |
| 113 | + </div> |
| 114 | + <div class="hxAlert__action"> |
| 115 | + <a href="#">Double Check</a> |
| 116 | + </div> |
| 117 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
115 | 118 | </div> |
116 | | - <div class="hxAlert__action"> |
117 | | - <a href="#">Double Check</a> |
118 | | - </div> |
119 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
120 | 119 | </div> |
121 | | - </div> |
122 | | - {% endcode %} |
123 | | -</section> |
| 120 | + {% endcode %} |
| 121 | + </section> |
124 | 122 |
|
125 | | -<section> |
126 | | - <h2 class="hxSectionTitle" id="success">Success</h2> |
| 123 | + <section> |
| 124 | + <h2 class="hxSectionTitle" id="success">Success</h2> |
127 | 125 |
|
128 | | - <div class="demo"> |
129 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
130 | | - <div class="hxAlert hxAlert--success"> |
131 | | - <div class="hxAlert__icon"> |
132 | | - <hx-icon type="checkmark"></hx-icon> |
| 126 | + <div class="demo"> |
| 127 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 128 | + <div class="hxAlert hxAlert--success"> |
| 129 | + <div class="hxAlert__icon"> |
| 130 | + <hx-icon type="checkmark"></hx-icon> |
| 131 | + </div> |
| 132 | + <div class="hxAlert__text"> |
| 133 | + <span class="hxAlert__status ">Success</span> |
| 134 | + You successfully read this important alert message. |
| 135 | + </div> |
| 136 | + <div class="hxAlert__action"> |
| 137 | + <a href="#">Celebrate</a> |
| 138 | + </div> |
| 139 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
133 | 140 | </div> |
134 | | - <div class="hxAlert__text"> |
135 | | - <span class="hxAlert__status ">Success</span> |
136 | | - You successfully read this important alert message. |
137 | | - </div> |
138 | | - <div class="hxAlert__action"> |
139 | | - <a href="#">Celebrate</a> |
140 | | - </div> |
141 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
142 | 141 | </div> |
143 | 142 | </div> |
144 | | - </div> |
145 | | - {% code 'html' %} |
146 | | - <div role="status" class="hxAlerts" aria-live="polite"> |
147 | | - <div class="hxAlert hxAlert--success"> |
148 | | - <div class="hxAlert__icon"> |
149 | | - <hx-icon type="checkmark"></hx-icon> |
150 | | - </div> |
151 | | - <div class="hxAlert__text"> |
152 | | - <span class="hxAlert__status ">Success</span> |
153 | | - You successfully read this important alert message. |
| 143 | + {% code 'html' %} |
| 144 | + <div role="status" class="hxAlerts" aria-live="polite"> |
| 145 | + <div class="hxAlert hxAlert--success"> |
| 146 | + <div class="hxAlert__icon"> |
| 147 | + <hx-icon type="checkmark"></hx-icon> |
| 148 | + </div> |
| 149 | + <div class="hxAlert__text"> |
| 150 | + <span class="hxAlert__status ">Success</span> |
| 151 | + You successfully read this important alert message. |
| 152 | + </div> |
| 153 | + <div class="hxAlert__action"> |
| 154 | + <a href="#">Celebrate</a> |
| 155 | + </div> |
| 156 | + <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
154 | 157 | </div> |
155 | | - <div class="hxAlert__action"> |
156 | | - <a href="#">Celebrate</a> |
157 | | - </div> |
158 | | - <button class="hxAlert__dismiss"><hx-icon type="times"></hx-icon></button> |
159 | 158 | </div> |
160 | | - </div> |
161 | | - {% endcode %} |
162 | | -</section> |
| 159 | + {% endcode %} |
| 160 | + </section> |
163 | 161 | {% endblock %} |
0 commit comments