Skip to content

Commit

Permalink
fix(limel-slider): use floating label styles
Browse files Browse the repository at this point in the history
  • Loading branch information
BregenzerK authored and adrianschmidt committed Sep 10, 2019
1 parent d3acdcc commit 511d099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/components/slider/slider.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '@lime-material/slider/mdc-slider';
@import "@lime-material/floating-label/mdc-floating-label";

$colorGrey: #999999;

Expand All @@ -22,12 +23,7 @@ $colorGrey: #999999;


.slider__label {
color: $colorGrey;
display: inline-block;
font-size: 1.2rem;
overflow: hidden;
text-overflow: clip;
width: 100%;
padding-left: 2rem;
}

.slider__content {
Expand Down
4 changes: 3 additions & 1 deletion src/components/slider/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export class Slider {
public render() {
return (
<div class="slider">
<label class="slider__label">{this.label}</label>
<label class="slider__label mdc-floating-label mdc-floating-label--float-above">
{this.label}
</label>
<div class="slider__content">
<div class="slider__content-range-container">
<span class="slider__content-min-label">
Expand Down

0 comments on commit 511d099

Please sign in to comment.