@signal9/era-ui 3.0.0 → 3.0.1

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.
@@ -33,9 +33,13 @@
33
33
  >{#if children}{@render children()}{:else}{code}{/if}</code
34
34
  ></pre>
35
35
  {#if copyable}
36
+ <!-- bg-surface, not transparent: the button floats over a scrollable <pre>,
37
+ so long lines would show through a chromeless button. The block's own
38
+ fill is bg-surface, so at rest this is pixel-identical to no background
39
+ — it just occludes whatever scrolls beneath. -->
36
40
  <CopyButton
37
41
  text={copyText}
38
- class="absolute top-[calc(var(--era-inset-md)+(var(--era-text)*1.625-var(--era-h-sm))/2)] right-[calc(var(--era-inset-md)+(var(--era-text)*1.625-var(--era-h-sm))/2)]"
42
+ class="absolute top-[calc(var(--era-inset-md)+(var(--era-text)*1.625-var(--era-h-sm))/2)] right-[calc(var(--era-inset-md)+(var(--era-text)*1.625-var(--era-h-sm))/2)] bg-surface"
39
43
  />
40
44
  {/if}
41
45
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",