ezfw-core 1.0.21 → 1.0.22

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.
@@ -121,7 +121,16 @@ export class EzDialog extends EzBaseComponent {
121
121
  }
122
122
 
123
123
  if (items && items.length > 0) {
124
- const children = await ez._createChildElements(items, null, null);
124
+ // Get css from props to pass to children
125
+ const itemCss = (props as Record<string, unknown>).css;
126
+ const itemsWithCss = itemCss
127
+ ? items.map((item: Record<string, unknown>) => ({
128
+ ...item,
129
+ css: item.css || itemCss
130
+ }))
131
+ : items;
132
+
133
+ const children = await ez._createChildElements(itemsWithCss, null, null);
125
134
  for (const child of children) {
126
135
  if (child instanceof Node) {
127
136
  body.appendChild(child);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezfw-core",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Ez Framework - A declarative component framework for building modern web applications",
5
5
  "type": "module",
6
6
  "main": "./core/ez.ts",