docs: fix MDX example

the3ash committed Jul 11, 2025 at 14:22 UTC 7cff0daa7bf7fd9401e456057be63b43547daed7
1 file changed +9 -2
src/components/examples/Tag.astro
+9 -2
@@ -116,7 +116,7 @@
116 tagValue = ''
117 if (tagInput) tagInput.value = ''
118 updateConfirmButton()
119 - }, 300)
119 + }, 250)
120 }
121
122 // Update confirm button state
@@ -195,19 +195,26 @@
195 display: flex;
196 align-items: center;
197 justify-content: center;
198 - transition: all 0.3s ease;
198 + transition:
199 + all 0.3s ease,
200 + visibility 0s;
201 position: absolute;
202 top: 50%;
203 left: 50%;
204 transform: translate(-50%, -50%) scale(1);
205 z-index: 1;
206 opacity: 1;
207 + visibility: visible;
208 }
209
210 .add-button.hidden {
211 opacity: 0;
212 transform: translate(-50%, -50%) scale(0.8);
213 pointer-events: none;
214 + visibility: hidden;
215 + transition:
216 + all 0.3s ease,
217 + visibility 0s 0.2s;
218 }
219
220 .add-icon,