Skip to content

Commit f62669d

Browse files
committed
Mix format
1 parent 0d48819 commit f62669d

File tree

2 files changed

+47
-17
lines changed

2 files changed

+47
-17
lines changed

lib/prima_web/live/demo_live/dropdown_page.html.heex

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,33 @@
110110
</tr>
111111
<tr class="hover:bg-gray-50">
112112
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
113-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">Enter</kbd>
113+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
114+
Enter
115+
</kbd>
114116
<span class="text-gray-400 mx-1">/</span>
115-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">Space</kbd>
117+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
118+
Space
119+
</kbd>
116120
</td>
117121
<td class="px-6 py-4 text-sm text-gray-700">
118122
Opens the menu and focuses the first non-disabled item
119123
</td>
120124
</tr>
121125
<tr class="hover:bg-gray-50">
122126
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
123-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold"></kbd>
127+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
128+
129+
</kbd>
124130
</td>
125131
<td class="px-6 py-4 text-sm text-gray-700">
126132
Opens the menu and focuses the first non-disabled item
127133
</td>
128134
</tr>
129135
<tr class="hover:bg-gray-50">
130136
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
131-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold"></kbd>
137+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
138+
139+
</kbd>
132140
</td>
133141
<td class="px-6 py-4 text-sm text-gray-700">
134142
Opens the menu and focuses the last non-disabled item
@@ -144,57 +152,79 @@
144152
</tr>
145153
<tr class="hover:bg-gray-50">
146154
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
147-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">Esc</kbd>
155+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
156+
Esc
157+
</kbd>
148158
</td>
149159
<td class="px-6 py-4 text-sm text-gray-700">
150160
Closes the menu and returns focus to the trigger button
151161
</td>
152162
</tr>
153163
<tr class="hover:bg-gray-50">
154164
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
155-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold"></kbd>
165+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
166+
167+
</kbd>
156168
<span class="text-gray-400 mx-1">/</span>
157-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold"></kbd>
169+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
170+
171+
</kbd>
158172
</td>
159173
<td class="px-6 py-4 text-sm text-gray-700">
160174
Focuses the previous/next non-disabled item (wraps around)
161175
</td>
162176
</tr>
163177
<tr class="hover:bg-gray-50">
164178
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
165-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">Home</kbd>
179+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
180+
Home
181+
</kbd>
166182
<span class="text-gray-400 mx-1">/</span>
167-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">PageUp</kbd>
183+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
184+
PageUp
185+
</kbd>
168186
</td>
169187
<td class="px-6 py-4 text-sm text-gray-700">
170188
Focuses the first non-disabled item
171189
</td>
172190
</tr>
173191
<tr class="hover:bg-gray-50">
174192
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
175-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">End</kbd>
193+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
194+
End
195+
</kbd>
176196
<span class="text-gray-400 mx-1">/</span>
177-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">PageDown</kbd>
197+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
198+
PageDown
199+
</kbd>
178200
</td>
179201
<td class="px-6 py-4 text-sm text-gray-700">
180202
Focuses the last non-disabled item
181203
</td>
182204
</tr>
183205
<tr class="hover:bg-gray-50">
184206
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
185-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">Enter</kbd>
207+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
208+
Enter
209+
</kbd>
186210
<span class="text-gray-400 mx-1">/</span>
187-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">Space</kbd>
211+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
212+
Space
213+
</kbd>
188214
</td>
189215
<td class="px-6 py-4 text-sm text-gray-700">
190216
Activates/clicks the currently focused menu item
191217
</td>
192218
</tr>
193219
<tr class="hover:bg-gray-50">
194220
<td class="px-6 py-4 whitespace-nowrap text-sm font-mono text-gray-900">
195-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">A-Z</kbd>
221+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
222+
A-Z
223+
</kbd>
196224
<span class="text-gray-400 mx-1">/</span>
197-
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">0-9</kbd>
225+
<kbd class="px-2 py-1.5 text-xs bg-gray-200 border border-gray-300 rounded shadow-sm font-semibold">
226+
0-9
227+
</kbd>
198228
</td>
199229
<td class="px-6 py-4 text-sm text-gray-700">
200230
Focuses the first item that starts with the typed character. Repeated presses cycle through matching items.

priv/code_examples/combobox/positioned.html.heex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</.combobox_options>
3535
</.combobox>
3636
</div>
37-
37+
3838
<!-- Right Placement -->
3939
<div>
4040
<label class="block text-sm font-medium text-gray-700 mb-2">Color (opens to right)</label>
@@ -71,7 +71,7 @@
7171
</.combobox_options>
7272
</.combobox>
7373
</div>
74-
74+
7575
<!-- Bottom with Large Offset -->
7676
<div>
7777
<label class="block text-sm font-medium text-gray-700 mb-2">Country (12px offset)</label>

0 commit comments

Comments
 (0)