Skip to content

Commit 404dbd4

Browse files
Replace material slider with default HTML
1 parent 63cf960 commit 404dbd4

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

apps/notebook/components/src/app/components/animation-controls/animation-controls.component.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,19 @@
3131
></mat-icon>
3232
</div>
3333

34-
<!-- band index slider -->
35-
<mat-slider
34+
<div class="custom-slider">
35+
<input
36+
type="range"
37+
[value]="frame"
38+
min="0"
39+
max="{{ nFrames - 1 }}"
40+
(mousedown)="pause()"
41+
(mouseup)="play()"
42+
(input)="onInputChange($event)"
43+
/>
44+
</div>
45+
46+
<!-- <mat-slider
3647
style="width: 50%"
3748
min="0"
3849
max="{{ nFrames - 1 }}"
@@ -45,5 +56,5 @@
4556
(dragStart)="pause()"
4657
(input)="onInputChange($event)"
4758
/>
48-
</mat-slider>
59+
</mat-slider> -->
4960
</div>

apps/notebook/components/src/app/styles/shared-styles.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,13 @@ $cell-height-limit: 500px;
6666
.embedded-image-with-horizontal-toolbar {
6767
max-width: calc(100% - 50px);
6868
}
69+
70+
.custom-slider {
71+
input[type='range'] {
72+
accent-color: #{$accent} !important;
73+
}
74+
75+
:focus {
76+
outline: none !important;
77+
}
78+
}

0 commit comments

Comments
 (0)