Skip to content

Commit cdcd77d

Browse files
authored
Fixed Input heights (#235)
* Fixed Input heights. * add enter handler * Updated UI Lib version.
1 parent d3d46ac commit cdcd77d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@soramitsu/soramitsu-js-ui",
3-
"version": "0.9.9",
3+
"version": "0.9.10",
44
"private": false,
55
"publishConfig": {
66
"registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"

src/components/Input/SInput.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
@blur="handleBlur"
3737
@focus="handleFocus"
3838
@paste.native="handlePaste"
39+
@keypress.enter.native="handleEnter"
3940
>
4041
<slot slot="prefix" name="prefix"></slot>
4142
<slot slot="suffix" name="suffix"></slot>
@@ -250,6 +251,10 @@ export default class SInput extends Mixins(BorderRadiusMixin, DesignSystemInject
250251
this.$emit('focus', event)
251252
}
252253
254+
handleEnter (event: Event): void {
255+
(event.target as any).blur()
256+
}
257+
253258
handleTextFileChange (event: any): void {
254259
if (typeof window.FileReader !== 'function') {
255260
throw new Error('The file API isn\'t supported on this browser.')

src/styles/neumorphism/input.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ $neu-input-padding: $s-basic-spacing $s-basic-spacing * 2 !default;
1313
box-shadow: $neu-input-box-shadow;
1414
color: $neu-input-color;
1515
padding: $neu-input-padding;
16+
height: initial;
17+
min-height: $s-size-big;
1618

1719
&.s-size-small {
1820
padding-top: $s-basic-spacing / 2;
1921
padding-bottom: $s-basic-spacing / 2;
22+
min-height: $s-size-small;
23+
}
24+
25+
&.s-size-medium {
26+
min-height: $s-size-medium;
2027
}
2128

2229
.el-input, .el-textarea {

0 commit comments

Comments
 (0)