Skip to content

Commit

Permalink
Merge pull request #429 from buildit/develop
Browse files Browse the repository at this point in the history
Release recent fix & dep updates
  • Loading branch information
James Nash authored May 6, 2020
2 parents 23c2e68 + 9b6d86d commit b8a4934
Show file tree
Hide file tree
Showing 18 changed files with 2,943 additions and 2,127 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ deploy:
- provider: script
skip_cleanup: true
script:
npm run semantic-release
npm run semantic-release -- --stream
# deploy develop to Staging
- provider: script
script:
Expand Down
180 changes: 53 additions & 127 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"preview": "@form-input-preview",
"context": {
"type": "text"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Purpose

A `textarea` is used to capture multiline text input from the user.

If the input must be completed in order to process the form successfully then a `required` attribute can be added. This will prevent the form being submitted until the `textarea` has a value.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preview": "@form-input-preview",
"context": {
"inputText": "Pedantic shitpost comment goes in here"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<textarea>{{ inputText }}</textarea>
3 changes: 2 additions & 1 deletion packages/gravity-ui-nunjucks/test-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

const excludedA11yFiles = [
'_preview',
'preview',
'form-input-preview',
'symbols',
'svg-symbols',
'image',
Expand Down
19 changes: 19 additions & 0 deletions packages/gravity-ui-web/src/sass/03-elements/_input.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
label {
display: block;

> textarea {
width: 100%;
margin-top: $grav-sp-s;
}
}

input:not([type=radio]):not([type=checkbox]) {
width: 100%;
max-width: 40ch;
padding-right: $grav-sp-xs;
padding-left: $grav-sp-xs;
border: grav-px2rem(1) solid var(--grav-co-grp-b-neutral);
background-color: var(--grav-co-grp-a-neutral);
}

textarea {
display: block;
padding-right: $grav-sp-xs;
padding-left: $grav-sp-xs;
border: grav-px2rem(1) solid var(--grav-co-grp-b-neutral);
background-color: var(--grav-co-grp-a-neutral);
}
Loading

0 comments on commit b8a4934

Please sign in to comment.