Skip to content

Commit

Permalink
Merge pull request #38 from dabapps/textareas-in-form-groups
Browse files Browse the repository at this point in the history
Textareas in form groups
  • Loading branch information
JakeSidSmith authored May 18, 2017
2 parents a1d1508 + 8984e27 commit 00d458e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
20 changes: 20 additions & 0 deletions docs/src/ts/inputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,26 @@ export const Inputs = () => (
</select>
</FormGroup>

<p>
Form Group Inline
</p>
<FormGroup>
<label>
Label
</label>
<textarea />
</FormGroup>

<p>
Form Group Block
</p>
<FormGroup block>
<label>
Label
</label>
<textarea />
</FormGroup>

<p>
Input Group with Input Group Addons
</p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roe",
"version": "0.1.5",
"version": "0.1.6",
"description": "A Collection of React Components for Project Development",
"main": "dist/js/index.js",
"types": "dist/js/index.d.ts",
Expand Down
9 changes: 6 additions & 3 deletions src/less/inputs.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ label {
& > label,
& > input,
& > select,
& > button {
& > button,
& > textarea {
display: table-cell;
margin-left: 0;
}
Expand All @@ -38,15 +39,17 @@ label {

& > input,
& > select,
& > button {
& > button,
& > textarea {
width: 100%;
}

&.block {
& > label,
& > input,
& > select,
& > button {
& > button,
& > textarea {
text-align: left;
display: block;
}
Expand Down

0 comments on commit 00d458e

Please sign in to comment.