Skip to content

Commit 7689753

Browse files
authored
Wrap-multiline (#1651)
1 parent 0bba9f0 commit 7689753

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"releases": [{ "name": "@arch-ui/input", "type": "minor" }],
3+
"dependents": [
4+
{
5+
"name": "@keystone-alpha/app-admin-ui",
6+
"type": "patch",
7+
"dependencies": ["@arch-ui/controls", "@keystone-alpha/fields", "@arch-ui/input"]
8+
},
9+
{
10+
"name": "@arch-ui/docs",
11+
"type": "patch",
12+
"dependencies": ["@arch-ui/controls", "@arch-ui/input"]
13+
},
14+
{ "name": "@arch-ui/controls", "type": "patch", "dependencies": ["@arch-ui/input"] },
15+
{ "name": "@arch-ui/day-picker", "type": "patch", "dependencies": ["@arch-ui/input"] },
16+
{
17+
"name": "@keystone-alpha/field-content",
18+
"type": "patch",
19+
"dependencies": ["@keystone-alpha/fields", "@arch-ui/input"]
20+
},
21+
{
22+
"name": "@keystone-alpha/fields",
23+
"type": "patch",
24+
"dependencies": [
25+
"@arch-ui/controls",
26+
"@arch-ui/day-picker",
27+
"@keystone-alpha/field-content",
28+
"@arch-ui/filters",
29+
"@arch-ui/input"
30+
]
31+
},
32+
{
33+
"name": "@keystone-alpha/fields-markdown",
34+
"type": "patch",
35+
"dependencies": ["@keystone-alpha/fields", "@arch-ui/input"]
36+
},
37+
{
38+
"name": "@keystone-alpha/fields-mongoid",
39+
"type": "patch",
40+
"dependencies": ["@keystone-alpha/fields", "@arch-ui/input"]
41+
},
42+
{
43+
"name": "@keystone-alpha/fields-wysiwyg-tinymce",
44+
"type": "patch",
45+
"dependencies": ["@keystone-alpha/fields", "@arch-ui/input"]
46+
},
47+
{
48+
"name": "@keystone-alpha/cypress-project-social-login",
49+
"type": "patch",
50+
"dependencies": ["@keystone-alpha/app-admin-ui", "@keystone-alpha/fields", "@arch-ui/input"]
51+
},
52+
{ "name": "@keystone-alpha/website", "type": "patch", "dependencies": ["@arch-ui/input"] },
53+
{ "name": "@arch-ui/filters", "type": "patch", "dependencies": ["@arch-ui/controls"] }
54+
]
55+
}

.changeset/neat-beans-fix/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allows multiline input content to wrap

packages/arch/packages/input/src/Input.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const inputStyles = (props: InputProps = {}) => ({
1414
...uniformHeight,
1515
backgroundColor: props.disabled ? colors.N10 : 'white',
1616
borderColor: colors.N20,
17-
// boxShadow: 'inset 0 1px 1px rgba(0, 0, 0, 0.075)',
1817
color: 'inherit',
1918
width: '100%',
2019

@@ -24,19 +23,18 @@ export const inputStyles = (props: InputProps = {}) => ({
2423
},
2524
':focus': {
2625
borderColor: colors.primary,
27-
// boxShadow: `inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px ${alpha(colors.primary, 0.2)}`,
2826
outline: 0,
2927
},
3028
'&[disabled]': {
3129
borderColor: colors.N15,
32-
// boxShadow: 'none',
3330
backgroundColor: colors.N05,
3431
},
3532
...(props.isMultiline
3633
? {
3734
lineHeight: 'inherit',
3835
minHeight: 100,
3936
resize: 'vertical',
37+
whiteSpace: 'wrap',
4038
}
4139
: undefined),
4240
});

0 commit comments

Comments
 (0)