1818{% endblock %}
1919
2020{% block content %}
21+ {# SINGLE BUTTON #}
2122 < section >
2223 < header >
2324 < h2 id ="basic-button "> Basic Button</ h2 >
@@ -43,21 +44,21 @@ <h2 id="basic-button">Basic Button</h2>
4344 < header >
4445 < form class ="beta-hxForm ">
4546 < fieldset >
46- < legend class ="beta-hxFieldName "> Variant </ legend >
47+ < legend class ="beta-hxFieldName "> Weight </ legend >
4748 < hx-radio-set >
48- < hx-radio-control v-for ="(_variant , idx) in variants ">
49+ < hx-radio-control v-for ="(_weight , idx) in weights ">
4950 < input
50- :id ="'radBasicVariant ' + idx "
51- :value ="_variant "
52- name ="variant "
51+ :id ="'radBasicWeight ' + idx "
52+ :value ="_weight "
53+ name ="weight "
5354 type ="radio "
54- v-model ="variant "
55+ v-model ="weight "
5556 />
56- < label :for ="'radBasicVariant ' + idx ">
57+ < label :for ="'radBasicWeight ' + idx ">
5758 < hx-radio > </ hx-radio >
58- {% raw %}{{_variant .label}}{% endraw %}
59+ {% raw %}{{_weight .label}}{% endraw %}
5960 </ label >
60- < p v-if ="_variant .default "> (default)</ p >
61+ < p v-if ="_weight .default "> (default)</ p >
6162 </ hx-radio-control >
6263 </ hx-radio-set >
6364 </ fieldset >
@@ -135,40 +136,36 @@ <h2 id="basic-button">Basic Button</h2>
135136 </ footer >
136137 </ section >
137138
139+ {# BUTTON BAR #}
138140 < section >
139141 < header >
140- < h2 id ="button-group "> Button Group </ h2 >
142+ < h2 id ="button-bar "> Button Bar </ h2 >
141143 < p >
142- A button group is built by placing several buttons within a
143- < code > <div></ code > element having the < code > .hxBtnGroup </ code >
144+ A button bar is built by placing several buttons within a
145+ < code > <div></ code > element having the < code > .hxButtonBar </ code >
144146 CSS class.
145147 </ p >
146148 </ header >
147149
148- < p >
149- Button variant classes are added to the wrapper instead of the individual
150- buttons in order to apply the same style to all buttons within the group.
151- </ p >
152-
153- < div class ="example " id ="vue-buttonGroupDemo " v-cloak >
150+ < div class ="example " id ="vue-buttonBarDemo " v-cloak >
154151 < header >
155152 < form class ="beta-hxForm ">
156153 < fieldset >
157- < legend class ="beta-hxFieldName "> Variant </ legend >
154+ < legend class ="beta-hxFieldName "> Weight </ legend >
158155 < hx-radio-set >
159- < hx-radio-control v-for ="(_variant , idx) in variants ">
156+ < hx-radio-control v-for ="(_weight , idx) in weights ">
160157 < input
161- :id ="'radGroupVariant ' + idx "
162- :value ="_variant "
163- name ="variant "
158+ :id ="'radBarWeight ' + idx "
159+ :value ="_weight "
160+ name ="weight "
164161 type ="radio "
165- v-model ="variant "
162+ v-model ="weight "
166163 />
167- < label :for ="'radGroupVariant ' + idx ">
164+ < label :for ="'radBarWeight ' + idx ">
168165 < hx-radio > </ hx-radio >
169- {% raw %}{{_variant .label}}{% endraw %}
166+ {% raw %}{{_weight .label}}{% endraw %}
170167 </ label >
171- < p v-if ="_variant .default "> (default)</ p >
168+ < p v-if ="_weight .default "> (default)</ p >
172169 </ hx-radio-control >
173170 </ hx-radio-set >
174171 </ fieldset >
@@ -178,13 +175,13 @@ <h2 id="button-group">Button Group</h2>
178175 < hx-radio-set >
179176 < hx-radio-control v-for ="(_size, idx) in sizes ">
180177 < input
181- :id ="'radGroupSize ' + idx "
178+ :id ="'radBarSize ' + idx "
182179 :value ="_size "
183180 name ="size "
184181 type ="radio "
185182 v-model ="size "
186183 />
187- < label :for ="'radGroupSize ' + idx ">
184+ < label :for ="'radBarSize ' + idx ">
188185 < hx-radio > </ hx-radio >
189186 {% raw %}{{_size.label}}{% endraw %}
190187 </ label >
@@ -217,5 +214,53 @@ <h2 id="button-group">Button Group</h2>
217214 {% endcode %}
218215 </ footer >
219216 </ div >
217+ < p class ="hxSubdued hxSubBody ">
218+ < hx-icon type ="exclamation-triangle "> </ hx-icon >
219+ Size and Weight classes are applied to the < em > entire</ em > bar, not to individual buttons.
220+ </ p >
221+ </ section >
222+
223+ {# BUTTON SET #}
224+ < section >
225+ < header >
226+ < h2 id ="button-set "> Button Set</ h2 >
227+ {# TODO: add section description #}
228+ </ header >
229+
230+ < div class ="example ">
231+ < div >
232+ < div class ="hxButtonSet ">
233+ < button class ="hxBtn hxPrimary ">
234+ Primary Button
235+ </ button >
236+
237+ < button class ="hxBtn ">
238+ Secondary Button
239+ </ button >
240+
241+ < button class ="hxBtn hxTertiary ">
242+ Tertiary Button
243+ </ button >
244+ </ div >
245+ </ div >
246+
247+ < footer >
248+ {% code 'html' %}
249+ < div class ="hxButtonSet ">
250+ < button class ="hxBtn hxPrimary ">
251+ Primary Button
252+ </ button >
253+
254+ < button class ="hxBtn ">
255+ Secondary Button
256+ </ button >
257+
258+ < button class ="hxBtn hxTertiary ">
259+ Tertiary Button
260+ </ button >
261+ </ div >
262+ {% endcode %}
263+ </ footer >
264+ </ div >
220265 </ section >
221266{% endblock %}
0 commit comments