smooth-player 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -432,6 +432,7 @@ export class SmoothPlayer {
432
432
  toggleButton.focus();
433
433
  }
434
434
  root.classList.toggle(openClassName, open);
435
+ panel.classList.toggle("is-open", open);
435
436
  panel.setAttribute("aria-hidden", String(!open));
436
437
  if (open) {
437
438
  panel.removeAttribute("inert");
@@ -346,6 +346,13 @@
346
346
  z-index: 3;
347
347
  }
348
348
 
349
+ .smooth-player__playlist.is-open {
350
+ transform: translateX(0);
351
+ opacity: 1;
352
+ visibility: visible;
353
+ pointer-events: auto;
354
+ }
355
+
349
356
  .smooth-player__playlist-head {
350
357
  display: flex;
351
358
  align-items: center;
@@ -435,6 +435,7 @@ class SmoothPlayer {
435
435
  toggleButton.focus();
436
436
  }
437
437
  root.classList.toggle(openClassName, open);
438
+ panel.classList.toggle("is-open", open);
438
439
  panel.setAttribute("aria-hidden", String(!open));
439
440
  if (open) {
440
441
  panel.removeAttribute("inert");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smooth-player",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Typed audio player with spectrum and waveform analyzers",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -372,6 +372,13 @@
372
372
  z-index: 3;
373
373
  }
374
374
 
375
+ .smooth-player__playlist.is-open {
376
+ transform: translateX(0);
377
+ opacity: 1;
378
+ visibility: visible;
379
+ pointer-events: auto;
380
+ }
381
+
375
382
  .smooth-player__playlist-head {
376
383
  display: flex;
377
384
  align-items: center;