You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/blog/announcing-ux-patterns-launch.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Launching "UX Patterns for Devs"
3
3
image: ../../../public/img/opengraph-image.png
4
-
description: "Introducing today my new open-source resource filled with proven UX patterns, practical code snippets, and actionable tips - empowering developers to build more accessible and user-friendly interfaces."
4
+
description: "Introducing a new open-source resource with UX patterns and code snippets to help developers build more accessible and user-friendly interfaces."
Copy file name to clipboardExpand all lines: content/en/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Build Better User Experiences"
3
-
description: "UX Patterns for Developers is a collection of UX patterns for everyone but specially towards developers who want to understand how to build effective UI components accessible and usable."
3
+
description: "A collection of UX patterns for developers to build effective, accessible, and usable UI components."
Copy file name to clipboardExpand all lines: content/en/pattern-guide/choosing-input-types.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
summary: "Select the most appropriate HTML input type based on your data collection needs"
3
-
description: "A comprehensive guide to choosing between different HTML input types based on factors like data structure, user experience, and validation requirements."
3
+
description: "Guide to choosing HTML input types based on data structure, user experience, and validation needs."
Copy file name to clipboardExpand all lines: content/en/pattern-guide/pagination-vs-infinite-scroll.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
summary: "Choose the right content loading pattern based on your user needs and content type"
3
-
description: "An in-depth comparison and decision guide to help you choose between pagination and infinite scroll patterns based on factors like content type, user behavior, and technical requirements."
3
+
description: "Compare pagination and infinite scroll patterns to choose the best option based on content typeand user behavior."
Copy file name to clipboardExpand all lines: content/en/patterns/content-management/drag-and-drop.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
summary: "Allow users to reorder items intuitively"
3
-
description: "Implement drag and drop functionality in your web applications. Learn best practices for creating intuitive item reordering with proper accessibility and touch support."
3
+
description: "Build intuitive drag and drop functionality with accessibility and touch support."
Copy file name to clipboardExpand all lines: content/en/patterns/content-management/expandable-text.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
summary: "Show or hide additional text content on demand"
3
-
description: "Learn how to implement expandable text components in your web applications. Discover best practices for progressive disclosure, accessibility, and user experience with practical examples."
3
+
description: "Create expandable text components with progressive disclosureand accessibility features for better content management."
4
4
icon: PlusSquare
5
5
status: complete
6
6
---
@@ -198,7 +198,7 @@ Each expandable text interaction provides valuable insights into user behavior.
198
198
199
199
### Event Payload Structure
200
200
201
-
To ensure consistent tracking, here’s a recommended event format:
201
+
To ensure consistent tracking, here's a recommended event format:
202
202
203
203
```json
204
204
{
@@ -227,7 +227,7 @@ By analyzing tracking data, we can optimize the expandable text experience:
227
227
228
228
- 🚨 **Low Expand Rate?**
229
229
→ Users may not notice or feel the need to expand content.
230
-
**Optimization:** Adjust design cues (e.g., larger icons, clearer labels like “Read More”), or test making the content visible by default.
230
+
**Optimization:** Adjust design cues (e.g., larger icons, clearer labels like "Read More"), or test making the content visible by default.
231
231
232
232
- ⏳ **Short Read Time After Expand?**
233
233
→ Users might not be engaging with the expanded content.
@@ -239,7 +239,7 @@ By analyzing tracking data, we can optimize the expandable text experience:
239
239
240
240
- 🔁 **High Re-Expand Rate?**
241
241
→ Users may be struggling to retain information after collapsing the text.
242
-
**Optimization:** Consider keeping key details visible at all times or providing a “sticky” summary.
242
+
**Optimization:** Consider keeping key details visible at all times or providing a "sticky" summary.
243
243
244
244
- ⚙️ **Auto-Expand Not Leading to Higher Engagement?**
Copy file name to clipboardExpand all lines: content/en/patterns/content-management/modal.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
summary: "Display focused content or actions"
3
-
description: "Create effective modal dialogs for your web applications. Learn best practices for implementing accessible modal windows with proper focus management and keyboard interactions."
3
+
description: "Build accessible modal dialogs with proper focus management, keyboard interactions, and user experience best practices."
4
4
icon: Maximize2
5
5
status: complete
6
6
---
@@ -212,63 +212,63 @@ graph TD
212
212
213
213
#### Forcing Users Into a Modal (No Close Option)
214
214
215
-
**❌ What’s Wrong?** Users feel trapped if they can’t exit a modal.
215
+
**❌ What's Wrong?** Users feel trapped if they can't exit a modal.
216
216
217
217
**How to Fix It?** Always provide a clear **close button (X)** and support the `Esc` key for dismissal.
218
218
219
219
---
220
220
221
221
#### Triggering Modals on Page Load
222
222
223
-
**❌ What’s Wrong?** Unrequested modals on page load can feel like pop-ups that disrupt user flow.
223
+
**❌ What's Wrong?** Unrequested modals on page load can feel like pop-ups that disrupt user flow.
224
224
225
225
**How to Fix It?** Only show modals when the user **intentionally** initiates them.
226
226
227
227
---
228
228
229
229
#### Disrupting Background Page Focus
230
230
231
-
**❌ What’s Wrong?** Some modals allow interaction with background content while open, causing layered focus.
231
+
**❌ What's Wrong?** Some modals allow interaction with background content while open, causing layered focus.
232
232
233
-
**How to Fix It?** Add a **focus trap** inside the modal and prevent background interaction until it’s closed.
233
+
**How to Fix It?** Add a **focus trap** inside the modal and prevent background interaction until it's closed.
234
234
235
235
---
236
236
237
237
#### Modal Closes on Accidental Click
238
238
239
-
**❌ What’s Wrong?** Clicking outside the modal might unintentionally dismiss it, frustrating or confusing users.
239
+
**❌ What's Wrong?** Clicking outside the modal might unintentionally dismiss it, frustrating or confusing users.
240
240
241
-
**How to Fix It?** Only allow closing on background click if it’s non-critical info. For important data, require an explicit close action.
241
+
**How to Fix It?** Only allow closing on background click if it's non-critical info. For important data, require an explicit close action.
242
242
243
243
---
244
244
245
245
#### Missing or Incorrect ARIA Markup (Accessibility)
246
246
247
-
**❌ What’s Wrong?** If the modal isn’t announced as a dialog (e.g., missing `role="dialog"`), screen readers might not indicate it properly.
247
+
**❌ What's Wrong?** If the modal isn't announced as a dialog (e.g., missing `role="dialog"`), screen readers might not indicate it properly.
248
248
249
249
**How to Fix It?** Use `role="dialog"` or the `<dialog>` element with `aria-modal="true"`. Provide a clear heading or label.
250
250
251
251
---
252
252
253
253
#### Failing to Return Focus to the Trigger (Accessibility)
254
254
255
-
**❌ What’s Wrong?** When the modal closes, focus can get lost (e.g., jump to the top of the page).
255
+
**❌ What's Wrong?** When the modal closes, focus can get lost (e.g., jump to the top of the page).
256
256
257
257
**How to Fix It?** Store the element that triggered the modal and **return focus** to it after closing.
258
258
259
259
---
260
260
261
261
#### No Visible Focus States (Accessibility)
262
262
263
-
**❌ What’s Wrong?** Keyboard users can’t see where they are if no focus outline is visible on buttons or form fields.
263
+
**❌ What's Wrong?** Keyboard users can't see where they are if no focus outline is visible on buttons or form fields.
264
264
265
-
**How to Fix It?** Ensure a **clear, high-contrast focus indicator** is present. Validate you can “Tab” through all interactive elements.
265
+
**How to Fix It?** Ensure a **clear, high-contrast focus indicator** is present. Validate you can "Tab" through all interactive elements.
266
266
267
267
---
268
268
269
269
#### Overly Complex or Overstuffed Modals (Accessibility)
270
270
271
-
**❌ What’s Wrong?** If a modal presents too much content (long forms, lots of text), users relying on screen readers may be overwhelmed.
271
+
**❌ What's Wrong?** If a modal presents too much content (long forms, lots of text), users relying on screen readers may be overwhelmed.
272
272
273
273
**How to Fix It?** Keep modals **brief and to the point**. For more complex workflows, use a dedicated page or a multi-step wizard.
274
274
@@ -293,7 +293,7 @@ Each modal interaction provides valuable insights into user behavior. Below are
293
293
294
294
### Event Payload Structure
295
295
296
-
To ensure consistent tracking, here’s a recommended event format:
296
+
To ensure consistent tracking, here's a recommended event format:
297
297
298
298
```json
299
299
{
@@ -313,7 +313,7 @@ Once tracking is in place, the following metrics provide actionable insights:
313
313
- Open Rate → Percentage of users who see the modal (manual vs. auto-open).
314
314
- Engagement Rate → Percentage of users who interact with the modal before closing.
315
315
- Dismissal Rate → Percentage of users who close the modal without taking any action.
316
-
- Completion Rate → Percentage of users who complete the modal’s primary action.
316
+
- Completion Rate → Percentage of users who complete the modal's primary action.
317
317
- Time in Modal → Average time users spend inside the modal.
318
318
319
319
### Insights & Optimization Based on Tracking
@@ -340,7 +340,7 @@ By analyzing tracking data, we can optimize the modal experience:
340
340
→ If most users dismiss auto-open modals immediately, they may be perceived as annoying.
341
341
**Optimization:** Make them **manual-triggered only**, delay their appearance, or ensure they are only shown when truly relevant.
342
342
343
-
By continuously monitoring these metrics, we can refine the modal’s effectiveness and ensure it enhances, rather than disrupts, the user experience.
343
+
By continuously monitoring these metrics, we can refine the modal's effectiveness and ensure it enhances, rather than disrupts, the user experience.
Copy file name to clipboardExpand all lines: content/en/patterns/forms/autocomplete.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
summary: "Suggest options as users type"
3
-
description: "Implement user-friendly autocomplete functionality in your web applications. Learn best practices for search suggestions, keyboard navigation, and accessibility with practical examples."
3
+
description: "Build user-friendly autocomplete with search suggestions, keyboard navigation, and accessibility features."
0 commit comments