astro-dgmo 0.11.3 → 0.11.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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -211,11 +211,13 @@ If your site marks dark mode some third way (`data-color-scheme="dark"`, `:root[
211
211
  display: none;
212
212
  }
213
213
  [data-mode='dark'] .dgmo-dark {
214
- display: block;
214
+ display: block !important;
215
215
  }
216
216
  ```
217
217
 
218
- If your site has no dark mode at all, you get the light diagram and nothing else to do: the dark wrapper ships with the `hidden` attribute, so it stays hidden until one of the rules above overrides it.
218
+ The `!important` is required, not decoration: the dark wrapper ships with an inline `display: none` (see below), and only an important rule outranks an inline declaration.
219
+
220
+ If your site has no dark mode at all, you get the light diagram and nothing else to do: the dark wrapper ships with an inline `display: none`, so it stays hidden until one of the rules above overrides it. That was the `hidden` attribute until `@diagrammo/dgmo` 0.82.0 — Tailwind v4 hides `[hidden]` with `!important` from inside `@layer base`, and a layered important declaration outranks an unlayered one whatever its specificity, so on a Tailwind v4 site no rule could reveal the dark diagram and every block was a blank box in dark mode.
219
221
 
220
222
  ## How it works
221
223
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-dgmo",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
4
4
  "description": "Astro integration to render DGMO diagrams from fenced code blocks at build time. Powered by @diagrammo/dgmo.",
5
5
  "license": "MIT",
6
6
  "author": "Diagrammo LLC",
@@ -77,11 +77,11 @@
77
77
  }
78
78
  },
79
79
  "dependencies": {
80
- "remark-dgmo": ">=0.15.3 <1"
80
+ "remark-dgmo": ">=0.15.5 <1"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@astrojs/markdown-remark": "^7.2.2",
84
- "@diagrammo/dgmo": ">=0.81.0 <1",
84
+ "@diagrammo/dgmo": ">=0.83.0 <1",
85
85
  "@eslint/js": "^10.0.1",
86
86
  "@types/node": "^22.20.1",
87
87
  "astro": "^7.2.0",