Skip to content

Commit

Permalink
fix(limel-select): add icon to select list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Gustafsson authored and adrianschmidt committed Sep 10, 2019
1 parent 9a2de2e commit dce4d82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ export class Select {

public render() {
return (
<label
<div
class={`
mdc-select
${this.disabled ? 'mdc-select--disabled' : ''}
`}
>
<i class="mdc-select__dropdown-icon" />
<select
onChange={this.onChange}
class="mdc-select__native-control"
Expand All @@ -79,16 +80,16 @@ export class Select {
);
})}
</select>
<span
<label
class={`
mdc-floating-label
${this.value ? 'mdc-floating-label--float-above' : ''}
`}
>
{this.label}
</span>
</label>
<div class="mdc-line-ripple" />
</label>
</div>
);
}

Expand Down

0 comments on commit dce4d82

Please sign in to comment.