@mittwald/flow-react-components 1.2.0-next.27 → 1.2.0-next.29
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/AGENTS.md +11 -0
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/css/all-layered.css +1 -1
- package/dist/css/all.css +1 -1
- package/dist/js/packages/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Modal/Modal.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.module.mjs.map +1 -1
- package/package.json +9 -9
package/AGENTS.md
CHANGED
|
@@ -229,6 +229,17 @@ if ("action" in props) {
|
|
|
229
229
|
Group repeated variants in local mixins.
|
|
230
230
|
- Structure sections with comments: `/* Elements */`, `/* States */`,
|
|
231
231
|
`/* Size */`, `/* Variants */`.
|
|
232
|
+
- **A `z-index` is scoped by the nearest ancestor stacking context** — mark that
|
|
233
|
+
element `isolation: isolate` explicitly. `position: relative`, a scroll
|
|
234
|
+
container (`overflow: auto`) and a flex/grid parent are **not** stacking
|
|
235
|
+
contexts, so without it the value competes with the whole page instead of the
|
|
236
|
+
siblings it was written for. A `transform` animation in between is one only
|
|
237
|
+
_while it runs_, so the scope otherwise changes with the animation state.
|
|
238
|
+
Isolating does not reorder anything inside the component: among positioned
|
|
239
|
+
siblings, `z-index: auto` and a `0`-equivalent stacking context paint in the
|
|
240
|
+
same step, in tree order. The exception is an element portalled into
|
|
241
|
+
`document.body` (`NotificationContainer`) — that one sits in the root stacking
|
|
242
|
+
context by construction and cannot be scoped; say so in a comment.
|
|
232
243
|
- **Overriding a dependency that injects its own stylesheet** (CodeMirror,
|
|
233
244
|
react-easy-crop, FontAwesome) needs `@layer flow.unlayered { … }`: their
|
|
234
245
|
`<style>` elements are unlayered, and unlayered CSS beats layered CSS
|