Skip to content

Commit

Permalink
fix(ld-input): fix input height
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Jul 13, 2021
1 parent ab716c0 commit e51f492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
5 changes: 5 additions & 0 deletions src/liquid/components/ld-input/ld-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,15 @@ ld-input {

> input {
max-height: var(--ld-input-max-height-md);
align-self: stretch;

&[type='file'] {
opacity: 0;

&:not(:disabled):not([aria-disabled='true']) {
cursor: pointer;
}

&::-webkit-file-upload-button {
display: none;
}
Expand Down
24 changes: 0 additions & 24 deletions src/liquid/components/ld-input/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,25 +128,13 @@ By default, the `ld-input` component is of [type `text`](https://developer.mozil
### Type date

{% example %}
<ld-input placeholder="Birthday" type="date" value="2017-06-01" size="sm"></ld-input>

<ld-input placeholder="Birthday" type="date" value="2017-06-01"></ld-input>

<ld-input placeholder="Birthday" type="date" value="2017-06-01" size="lg"></ld-input>

<!-- CSS component -->

<div class="ld-input ld-input--sm">
<input placeholder="Birthday" type="date" value="2017-06-01">
</div>

<div class="ld-input">
<input placeholder="Birthday" type="date" value="2017-06-01">
</div>

<div class="ld-input ld-input--lg">
<input placeholder="Birthday" type="date" value="2017-06-01">
</div>
{% endexample %}

### Type email
Expand Down Expand Up @@ -222,25 +210,13 @@ Triggers a telephone keypad in some devices with dynamic keypads.
### Type time

{% example %}
<ld-input placeholder="Time of reservation" type="time" value="13:30" size="sm"></ld-input>

<ld-input placeholder="Time of reservation" type="time" value="13:30"></ld-input>

<ld-input placeholder="Time of reservation" type="time" value="13:30" size="lg"></ld-input>

<!-- CSS component -->

<div class="ld-input ld-input--sm">
<input placeholder="Time of reservation" type="time" value="13:30">
</div>

<div class="ld-input">
<input placeholder="Time of reservation" type="time" value="13:30">
</div>

<div class="ld-input ld-input--lg">
<input placeholder="Time of reservation" type="time" value="13:30">
</div>
{% endexample %}

### Type url
Expand Down

0 comments on commit e51f492

Please sign in to comment.