@sofidevo/astro-dynamic-header 5.0.3 → 5.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Header.astro +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofidevo/astro-dynamic-header",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "A dynamic Astro header component that switches between floating and fullscreen styles",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/Header.astro CHANGED
@@ -233,6 +233,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
233
233
  --text-color: var(--d-text, #ffffff);
234
234
  --accent-color: var(--d-accent, #00ffff);
235
235
  --backdrop-blur: var(--d-blur, blur(20px));
236
+ background-color: var(--bg-color);
236
237
  }
237
238
 
238
239
  /* Forced themes: higher specificity than .header, no !important needed */
@@ -242,6 +243,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
242
243
  --text-color: var(--d-text, #ffffff);
243
244
  --accent-color: var(--d-accent, #00ffff);
244
245
  --backdrop-blur: var(--d-blur, blur(30px));
246
+ background-color: var(--bg-color);
245
247
  }
246
248
 
247
249
  .header.header--force-light {
@@ -250,6 +252,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
250
252
  --text-color: var(--l-text, #1a1a1a);
251
253
  --accent-color: var(--l-accent, #3e1c71);
252
254
  --backdrop-blur: var(--l-blur, blur(30px));
255
+ background-color: var(--bg-color);
253
256
  }
254
257
 
255
258
  .header__container {