@trintel/zooy 1.9.2 → 1.10.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.
- package/package.json +5 -5
- package/src/sass/carbon.scss +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trintel/zooy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "UI Building Blocks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"prepare": "vp config"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@carbon/icons": "
|
|
42
|
-
"@carbon/web-components": "
|
|
43
|
-
"@ibm/plex": "
|
|
44
|
-
"badu": "
|
|
41
|
+
"@carbon/icons": "latest",
|
|
42
|
+
"@carbon/web-components": "latest",
|
|
43
|
+
"@ibm/plex": "latest",
|
|
44
|
+
"badu": "latest",
|
|
45
45
|
"material-components-web": "^14.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
package/src/sass/carbon.scss
CHANGED
|
@@ -98,3 +98,24 @@ cds-popover {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
// Opt-in escape hatch for Carbon modals that host a dropdown,
|
|
103
|
+
// combo-box, or popover whose menu needs to float over (and outside)
|
|
104
|
+
// the modal. Add the `allow_overflow` attribute to <cds-modal> to enable.
|
|
105
|
+
//
|
|
106
|
+
// Why this is needed:
|
|
107
|
+
// Carbon's <cds-modal> renders `.cds--modal-container` inside its
|
|
108
|
+
// shadow DOM with `overflow: hidden;` and `transform: translateZ(0);`.
|
|
109
|
+
// Either property alone is enough to clip an absolutely-positioned
|
|
110
|
+
// dropdown menu opened from a form field inside the modal — the
|
|
111
|
+
// menu gets cut off at the modal's edge instead of floating over
|
|
112
|
+
// surrounding content.
|
|
113
|
+
//
|
|
114
|
+
// The container is exposed via `part="dialog"`, so we can pierce
|
|
115
|
+
// the shadow boundary from outside CSS using `::part(dialog)`.
|
|
116
|
+
// Long modal content still scrolls correctly because the inner
|
|
117
|
+
// <cds-modal-body> has its own `overflow-y: auto` on a different
|
|
118
|
+
// element (`.cds--modal-content`).
|
|
119
|
+
cds-modal[open][allow_overflow]::part(dialog) {
|
|
120
|
+
overflow: visible;
|
|
121
|
+
}
|