Skip to content

Commit 0774ef2

Browse files
chore(number input): img updates (#4624)
1 parent 8bdf3f4 commit 0774ef2

7 files changed

Lines changed: 156 additions & 3 deletions

File tree

packages/documentation-site/patternfly-docs/content/design-guidelines/components/number input/img/number_input_anatomy.svg

Lines changed: 57 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/number input/img/number_input_states.svg

Lines changed: 49 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/number input/img/with_threshold.svg

Lines changed: 37 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/number input/number-input.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ id: Number input
33
section: components
44
---
55

6+
import '../components.css';
7+
68
## Elements
7-
<img src="./img/number_input_anatomy.png" alt="Number input elements" width="537px"/>
9+
10+
<div class="ws-docs-content-img">
11+
![Number input elements](./img/number_input_anatomy.svg)
12+
</div>
813

914
1. **Label:** Indicates what value the user should input in the numeric field.
1015
2. **Input field:** Area for the user to type in their numeric input.
@@ -30,7 +35,10 @@ section: components
3035
* Determine an increment size relative to your specific value range. Scale your increment size to accommodate for the types of values users will input in context.
3136
For example: If your range is from 0-10, have increments of 1, but if your range is from 0-100, have increments of 10.
3237
* Include unit symbols to the right of the text input and increase button, depending on your use case. Always use a unit’s standard abbreviation or symbol. For a list of recommended symbols, see our <a href="https://v4-archive.patternfly.org/v4/ux-writing/units-and-symbols#writing-units-of-measure">Units and symbols page</a>.
33-
<img src="./img/number_input_states.png" alt="Number input states" width="740px"/>
38+
39+
<div class="ws-docs-content-img">
40+
![Number input states](./img/number_input_states.svg)
41+
</div>
3442

3543
## Variations
3644
Number inputs can function in one of two ways:
@@ -46,7 +54,9 @@ A number input with thresholds disables each button when a user’s numeric inpu
4654

4755
When adding thresholds to a number input, be sure to inform users with text to minimize their risk for input errors. If a number input for the number of storage drives has a maximum input value of 20, communicate this limit in helper text: <i>Maximum capacity 20</i>.
4856

49-
<img src="./img/with_threshold.png" alt="Number input with threshold" width="474px"/>
57+
<div class="ws-docs-content-img">
58+
![Number input with threshold](./img/with_threshold.svg)
59+
</div>
5060

5161
## Accessibility
5262
Consider the following guidance to ensure that your number input is <a href="https://www.section508.gov/">508 compliant</a>:

0 commit comments

Comments
 (0)