Skip to content

Commit a792dd2

Browse files
authored
Merge pull request #157 from ovh-ux/fix/ouiTextareaFullWidth
Fix/oui textarea full width
2 parents c04c447 + e9554ff commit a792dd2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/oui-textarea/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ oui-textarea is a package which provides styles for the textarea component.
1212

1313
## Usage
1414

15+
### Native
16+
17+
```html:preview
18+
<textarea class="oui-textarea">Textarea text</textarea>
19+
```
20+
1521
### Basic
1622

1723
```html:preview

packages/oui-textarea/_mixins.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#oui > .animate();
99
transition-property: border-color, box-shadow, background-color;
1010

11-
display: block;
11+
display: flex;
12+
flex-direction: column;
1213
padding: 0;
1314
margin: @oui-textarea-margin;
1415
border-radius: @oui-textarea-border-radius;
@@ -19,6 +20,7 @@
1920
#oui > .animate();
2021

2122
display: block;
23+
flex-grow: 1;
2224
width: 100%;
2325
resize: none;
2426
outline: none;
@@ -107,6 +109,7 @@
107109
}
108110

109111
.textarea-legacy-base() {
112+
width: 100%;
110113
padding: @oui-textarea-field-padding;
111114
font-size: @oui-textarea-font-size;
112115
line-height: @oui-textarea-line-height;

0 commit comments

Comments
 (0)