Skip to content

Commit

Permalink
[docs] Use actual symbol of kilogram (mui#27332)
Browse files Browse the repository at this point in the history
  • Loading branch information
getsnoopy authored Jul 17, 2021
1 parent 5f21880 commit dabbc3d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions docs/src/pages/components/text-fields/InputAdornments.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export default function InputAdornments() {
id="outlined-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
/>
<FormControl sx={{ m: 1, width: '25ch' }} variant="outlined">
<OutlinedInput
id="outlined-adornment-weight"
value={values.weight}
onChange={handleChange('weight')}
endAdornment={<InputAdornment position="end">Kg</InputAdornment>}
endAdornment={<InputAdornment position="end">kg</InputAdornment>}
aria-describedby="outlined-weight-helper-text"
inputProps={{
'aria-label': 'weight',
Expand Down Expand Up @@ -99,7 +99,7 @@ export default function InputAdornments() {
id="filled-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
variant="filled"
/>
Expand All @@ -108,7 +108,7 @@ export default function InputAdornments() {
id="filled-adornment-weight"
value={values.weight}
onChange={handleChange('weight')}
endAdornment={<InputAdornment position="end">Kg</InputAdornment>}
endAdornment={<InputAdornment position="end">kg</InputAdornment>}
aria-describedby="filled-weight-helper-text"
inputProps={{
'aria-label': 'weight',
Expand Down Expand Up @@ -153,7 +153,7 @@ export default function InputAdornments() {
id="standard-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
variant="standard"
/>
Expand All @@ -162,7 +162,7 @@ export default function InputAdornments() {
id="standard-adornment-weight"
value={values.weight}
onChange={handleChange('weight')}
endAdornment={<InputAdornment position="end">Kg</InputAdornment>}
endAdornment={<InputAdornment position="end">kg</InputAdornment>}
aria-describedby="standard-weight-helper-text"
inputProps={{
'aria-label': 'weight',
Expand Down
12 changes: 6 additions & 6 deletions docs/src/pages/components/text-fields/InputAdornments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ export default function InputAdornments() {
id="outlined-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
/>
<FormControl sx={{ m: 1, width: '25ch' }} variant="outlined">
<OutlinedInput
id="outlined-adornment-weight"
value={values.weight}
onChange={handleChange('weight')}
endAdornment={<InputAdornment position="end">Kg</InputAdornment>}
endAdornment={<InputAdornment position="end">kg</InputAdornment>}
aria-describedby="outlined-weight-helper-text"
inputProps={{
'aria-label': 'weight',
Expand Down Expand Up @@ -108,7 +108,7 @@ export default function InputAdornments() {
id="filled-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
variant="filled"
/>
Expand All @@ -117,7 +117,7 @@ export default function InputAdornments() {
id="filled-adornment-weight"
value={values.weight}
onChange={handleChange('weight')}
endAdornment={<InputAdornment position="end">Kg</InputAdornment>}
endAdornment={<InputAdornment position="end">kg</InputAdornment>}
aria-describedby="filled-weight-helper-text"
inputProps={{
'aria-label': 'weight',
Expand Down Expand Up @@ -162,7 +162,7 @@ export default function InputAdornments() {
id="standard-start-adornment"
sx={{ m: 1, width: '25ch' }}
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
variant="standard"
/>
Expand All @@ -171,7 +171,7 @@ export default function InputAdornments() {
id="standard-adornment-weight"
value={values.weight}
onChange={handleChange('weight')}
endAdornment={<InputAdornment position="end">Kg</InputAdornment>}
endAdornment={<InputAdornment position="end">kg</InputAdornment>}
aria-describedby="standard-weight-helper-text"
inputProps={{
'aria-label': 'weight',
Expand Down
8 changes: 4 additions & 4 deletions docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -2092,10 +2092,10 @@ As the core components use emotion as their style engine, the props used by emot
- Set the InputAdornment `position` prop to `start` or `end`. Use `start` if used as the value of the `startAdornment` prop. Use `end` if used as the value of the `endAdornment` prop.

```diff
-<TextField startAdornment={<InputAdornment>Kg</InputAdornment>} />
-<TextField endAdornment={<InputAdornment>Kg</InputAdornment>} />
+<TextField startAdornment={<InputAdornment position="start">Kg</InputAdornment>} />
+<TextField endAdornment={<InputAdornment position="end">Kg</InputAdornment>} />
-<TextField startAdornment={<InputAdornment>kg</InputAdornment>} />
-<TextField endAdornment={<InputAdornment>kg</InputAdornment>} />
+<TextField startAdornment={<InputAdornment position="start">kg</InputAdornment>} />
+<TextField endAdornment={<InputAdornment position="end">kg</InputAdornment>} />
```

### TextareaAutosize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function FilledHiddenLabelInputAdornment() {
defaultValue="Value"
variant="filled"
InputProps={{
startAdornment: <InputAdornment position="start">Kg</InputAdornment>,
startAdornment: <InputAdornment position="start">kg</InputAdornment>,
}}
/>
);
Expand Down

0 comments on commit dabbc3d

Please sign in to comment.