@coras-io/embed 0.6.3 → 0.6.4

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,11 @@
1
1
  # @coras-io/embed
2
2
 
3
+ ## 0.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
3
9
  ## 0.6.3
4
10
 
5
11
  ### 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
  }
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.4",
24
24
  "private": false,
25
25
  "homepage": "https://docs.coras.io",
26
26
  "bugs": {