44also:
55 components/file/test-drop-fence.html: Testing - Drop Fence
66 components/file/test-drop-zone.html: Testing - Drop Zone
7- components/file/test-file-selector .html: Testing - File Selector
7+ components/file/test-file-input .html: Testing - File Input
88 components/file/test-file-tile.html: Testing - File Tile
99 components/icon: Icon
1010 elements/hx-drop-fence: < hx-drop-fence >
@@ -42,11 +42,17 @@ <h2 id="drop-zone">Drop Zone</h2>
4242 < hx-drop-fence >
4343 < p >
4444 Drop files here or
45- < hx-file-input
46- class ="hxTertiary "
47- label ="browse your files ">
48- < input type ="file " />
49- </ hx-file-input > .
45+ < hx-file-control >
46+ < input
47+ id ="fileInputDropZoneDemo "
48+ type ="file "
49+ />
50+ < label for ="fileInputDropZoneDemo ">
51+ < hx-file-input class ="hxBtn hxTertiary ">
52+ browse your files
53+ </ hx-file-input >
54+ </ label >
55+ </ hx-file-control >
5056 </ p >
5157 </ hx-drop-fence >
5258 </ hx-drop-zone >
@@ -58,11 +64,17 @@ <h2 id="drop-zone">Drop Zone</h2>
5864 < hx-drop-fence >
5965 < p >
6066 Drop files here or
61- < hx-file-input
62- class ="hxTertiary "
63- label ="browse your files ">
64- < input type ="file " />
65- </ hx-file-input > .
67+ < hx-file-control >
68+ < input
69+ id ="fileInputDropZoneDemo "
70+ type ="file "
71+ />
72+ < label for ="fileInputDropZoneDemo ">
73+ < hx-file-input class ="hxBtn hxTertiary ">
74+ browse your files
75+ </ hx-file-input >
76+ </ label >
77+ </ hx-file-control >
6678 </ p >
6779 </ hx-drop-fence >
6880 </ hx-drop-zone >
@@ -73,7 +85,7 @@ <h2 id="drop-zone">Drop Zone</h2>
7385
7486 < section >
7587 < header >
76- < h2 id ="file-selector "> File Selector </ h2 >
88+ < h2 id ="file-input "> File Input </ h2 >
7789 < p class ="hxSubBody "> Added: v0.13.0</ p >
7890 {# TODO: add section description #}
7991 </ header >
@@ -129,6 +141,18 @@ <h2 id="file-selector">File Selector</h2>
129141
130142 < fieldset >
131143 < legend class ="beta-hxFieldName "> Control Options</ legend >
144+ < hx-checkbox-control >
145+ < input
146+ id ="chkIsDisabled "
147+ type ="checkbox "
148+ v-model ="isDisabled "
149+ />
150+ < label for ="chkIsDisabled ">
151+ < hx-checkbox > </ hx-checkbox >
152+ Disabled
153+ </ label >
154+ </ hx-checkbox-control >
155+
132156 < hx-checkbox-control >
133157 < input
134158 id ="chkIsMultiple "
@@ -145,22 +169,36 @@ <h2 id="file-selector">File Selector</h2>
145169 </ header >
146170
147171 < div >
148- < hx-file-input
149- :class ="variant.val "
150- :icon ="icon "
151- :label ="label "
152- >
172+ < hx-file-control >
153173 < input
174+ id ="fileInputDemo "
154175 type ="file "
176+ :disabled ="isDisabled "
155177 :multiple ="isMultiple "
156178 />
157- </ hx-file-input >
179+ < label for ="fileInputDemo ">
180+ < hx-file-input
181+ :class ="variant.val "
182+ :icon ="icon "
183+ >
184+ {% raw %}{{label}}{% endraw %}
185+ </ hx-file-input >
186+ </ label >
187+ </ hx-file-control >
158188 </ div >
159189
160190 < footer >
161191 < pre > < code v-text ="snippet "> </ code > </ pre >
162192 </ footer >
163193 </ div >
194+ < p class ="hxSubdued hxSubBody ">
195+ < hx-icon type ="exclamation-triangle "> </ hx-icon >
196+ Microsoft browsers never match the < code > input[type="file"]:active</ code > CSS selector.
197+ </ p >
198+ < p class ="hxSubdued hxSubBody ">
199+ < hx-icon type ="exclamation-triangle "> </ hx-icon >
200+ Microsoft browsers apply two tab stops on < code > <input type="file"></ code > elements.
201+ </ p >
164202 </ section >
165203
166204 < section >
0 commit comments