@coras-io/embed 0.6.4 → 0.6.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @coras-io/embed
2
2
 
3
+ ## 0.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 6375af6: Keep the drawer's opening slide clean on phones too, where the panel still showed in place before sliding in.
8
+
9
+ ## 0.6.5
10
+
11
+ ### Patch Changes
12
+
13
+ - adfa7c5: Open the drawer with a clean slide-in on every screen size, instead of showing the panel in place before the slide and ahead of the overlay fade.
14
+
3
15
  ## 0.6.4
4
16
 
5
17
  ### Patch Changes
@@ -41,7 +41,9 @@ let CorasDrawer = class CorasDrawer extends OverlayMixin(LitElement) {
41
41
  }
42
42
  static { this.styles = styles; }
43
43
  focusPanel() {
44
- this.panel.focus();
44
+ // The panel is still translated off-screen when focus lands, so a plain
45
+ // focus scrolls the overflow-hidden wrapper to reveal it before the slide.
46
+ this.panel.focus({ preventScroll: true });
45
47
  }
46
48
  render() {
47
49
  const classes = {
@@ -27,7 +27,9 @@ export default css `
27
27
  width: 100%;
28
28
  height: 100%;
29
29
  pointer-events: none;
30
- overflow: hidden;
30
+ /* Not hidden: that is a scroll container, and focusing or scrolling to
31
+ anything in the off-screen panel drags it into view before the slide. */
32
+ overflow: clip;
31
33
  position: fixed;
32
34
  z-index: var(--drawer-z-index);
33
35
 
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "engines": {
21
21
  "node": ">=22"
22
22
  },
23
- "version": "0.6.4",
23
+ "version": "0.6.6",
24
24
  "private": false,
25
25
  "homepage": "https://docs.coras.io",
26
26
  "bugs": {