Skip to content

Commit 1b08a8b

Browse files
committed
feat: add some previous bits of content
1 parent 774e85a commit 1b08a8b

File tree

7 files changed

+67
-9
lines changed

7 files changed

+67
-9
lines changed

.github/workflows/update-patterns-list.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.PAT_TOKEN }}
2022

2123
- name: Set up Node.js
2224
uses: actions/setup-node@v4
@@ -29,7 +31,7 @@ jobs:
2931
- name: Create Pull Request
3032
uses: peter-evans/create-pull-request@v6
3133
with:
32-
token: ${{ secrets.GITHUB_TOKEN }}
34+
token: ${{ secrets.PAT_TOKEN }}
3335
commit-message: "docs: update patterns list [skip ci]"
3436
title: "docs: update patterns list"
3537
body: |

content/en/patterns/forms/search-field.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,21 @@ import { Callout } from "nextra/components";
77

88
# Search Field
99

10+
**_(Also called search input)_**
11+
1012
<Callout type="warning">
1113
This page is empty for now. Please help us by
1214
[contributing](https://github.com/thedaviddias/ux-patterns-for-developers/blob/main/.github/CONTRIBUTING.md)
1315
to add content.
1416
</Callout>
17+
18+
## Overview
19+
20+
## Usage
21+
22+
A search can be used in the following cases:
23+
24+
- Global search on a website
25+
- Reduce the number of results in a list (ex: dropdown with a list of elements)
26+
27+
Usually used in combinaison with [autocomplete](/patterns/forms/autocomplete)

content/en/patterns/forms/selection-input.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { Callout } from "nextra/components";
77

88
# Selection Input
99

10+
**_(Also called dropdown, select)_**
11+
1012
<Callout type="warning">
1113
This page is empty for now. Please help us by
1214
[contributing](https://github.com/thedaviddias/ux-patterns-for-developers/blob/main/.github/CONTRIBUTING.md)

content/en/patterns/forms/slider.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ import { Callout } from "nextra/components";
1212
[contributing](https://github.com/thedaviddias/ux-patterns-for-developers/blob/main/.github/CONTRIBUTING.md)
1313
to add content.
1414
</Callout>
15+
16+
## Resources
17+
18+
### Articles
19+
20+
- [Designing The Perfect Slider UX](https://www.smashingmagazine.com/2017/07/designing-perfect-slider/) by Smashing Magazine
21+
22+
### Design systems
23+
24+
https://developer.apple.com/design/human-interface-guidelines/components/selection-and-input/sliders

content/en/patterns/forms/text-field.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,31 @@ import { Callout } from "nextra/components";
77

88
# Text Field
99

10+
**_(Also called text input or text box)_**
11+
1012
<Callout type="warning">
1113
This page is empty for now. Please help us by
1214
[contributing](https://github.com/thedaviddias/ux-patterns-for-developers/blob/main/.github/CONTRIBUTING.md)
1315
to add content.
1416
</Callout>
17+
18+
## Best Practices
19+
20+
### Design
21+
22+
- [ ] Don't rely **only on color to indicate the state of the text field**. Use a different border color or a different icon to indicate the state of the text field.
23+
- [ ] Avoid using an icon signifiying an **error state inside a text field**. It's easier to establish a common pattern for all input fields. For example: inputs `type=file` don't contain text, it's usually represented by a button. A password field has usually an eye icon on the right of the input. A date field has usually a calendar icon on the right of the input. A search field has usually a clear icon on the right of the input.
24+
25+
## Anatomy
26+
27+
1. Label
28+
2. Input
29+
3. Placeholder
30+
4. Helper text
31+
5. Validation message
32+
33+
## Resources
34+
35+
### References
36+
37+
- https://uxdesign.cc/text-fields-forms-design-ui-components-series-2b32b2beebd0

content/en/patterns/forms/dropdown.mdx renamed to content/en/patterns/navigation/infinite-scroll.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
description: "Select options from a collapsible list"
3-
icon: ChevronsUpDown
2+
description: ""
3+
icon:
44
---
55

66
import { BrowserSupport } from "@app/_components/browser-support";
77
import { Callout } from "nextra/components";
88

9-
# Dropdown
9+
# Infinite scroll
10+
11+
**_(Also called Continuous scrolling)_**
1012

1113
<Callout type="warning">
1214
This page is empty for now. Please help us by
@@ -16,7 +18,7 @@ import { Callout } from "nextra/components";
1618

1719
## Overview
1820

19-
**Dropdowns** are [brief description of the component].
21+
**Infinite scrolls** are [brief description of the component].
2022

2123
## Use Cases
2224

@@ -48,14 +50,14 @@ import { Callout } from "nextra/components";
4850

4951
```mermaid
5052
flowchart TB
51-
subgraph Dropdown[Dropdown Navigation]
53+
subgraph Infinite scroll[Infinite scroll Navigation]
5254
A[Component Part 1] -.->|relation| B[Component Part 2]
5355
B -.->|relation| C[Component Part 3]
5456
style A fill:#f0f0f0,stroke:#666,stroke-width:1px
5557
style B fill:#f0f0f0,stroke:#666,stroke-width:1px
5658
style C fill:#f0f0f0,stroke:#666,stroke-width:1px
5759
classDef container fill:#ffffe0,stroke:#666,stroke-width:2px
58-
class Dropdown container
60+
class Infinite scroll container
5961
end
6062
```
6163

@@ -160,12 +162,12 @@ end
160162

161163
These design tokens follow the [Design Tokens Format](https://design-tokens.github.io/community-group/format/) specification and can be used with various token transformation tools to generate platform-specific variables.
162164

163-
### Dropdown Tokens in DTF Format
165+
### Infinite scroll Tokens in DTF Format
164166

165167
```json:.json
166168
{
167169
"$schema": "https://design-tokens.org/schema.json",
168-
"Dropdown": {}
170+
"Infinite scroll": {}
169171
}
170172
```
171173

content/en/patterns/navigation/pagination.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ import { Callout } from "nextra/components";
1212
[contributing](https://github.com/thedaviddias/ux-patterns-for-developers/blob/main/.github/CONTRIBUTING.md)
1313
to add content.
1414
</Callout>
15+
16+
## Best Practices
17+
18+
### Design
19+
20+
- [ ] Design for the possibility of having a digit bigger than 1000 (maybe use 1k, 2k, 3k, etc.)

0 commit comments

Comments
 (0)