@coras-io/embed 0.6.3 → 0.6.5

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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
9
+ ## 0.6.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 6421877: Keep the selected range background between the first and last day in the multi-month calendar, so it no longer spills past the day circles on small screens.
14
+
3
15
  ## 0.6.3
4
16
 
5
17
  ### Patch Changes
@@ -6,8 +6,9 @@ export default css `
6
6
  :host {
7
7
  /* The multi-month calendar is mounted directly by the landing page, not
8
8
  nested inside coras-calendar, so it does not inherit that component's
9
- token. Declare it here rather than reading a sibling's :host. */
9
+ tokens. Declare them here rather than reading a sibling's :host. */
10
10
  --calendar-header-font-size: var(--coras-font-size-base);
11
+ --calendar-selected-range-background-color: var(--coras-color-menu-hover);
11
12
 
12
13
  /* This calendar fills the sheet it is opened in, so the columns share the
13
14
  width instead of sitting in a fixed 252px block against one edge. The cap
@@ -42,6 +43,29 @@ export default css `
42
43
  max-width: 100%;
43
44
  aspect-ratio: 1;
44
45
  }
46
+
47
+ /* The wide cell would show the range background on both sides of
48
+ the circle, so paint only the half that faces the range. */
49
+ li.day.start,
50
+ li.day.end {
51
+ border-radius: 0;
52
+ }
53
+
54
+ li.day.start {
55
+ background: linear-gradient(
56
+ to right,
57
+ transparent 50%,
58
+ var(--calendar-selected-range-background-color) 50%
59
+ );
60
+ }
61
+
62
+ li.day.end {
63
+ background: linear-gradient(
64
+ to left,
65
+ transparent 50%,
66
+ var(--calendar-selected-range-background-color) 50%
67
+ );
68
+ }
45
69
  }
46
70
  }
47
71
  }
@@ -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 = {
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "engines": {
21
21
  "node": ">=22"
22
22
  },
23
- "version": "0.6.3",
23
+ "version": "0.6.5",
24
24
  "private": false,
25
25
  "homepage": "https://docs.coras.io",
26
26
  "bugs": {