@griddo/ax 12.10.4 → 12.10.5-rc.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "12.10.
|
|
4
|
+
"version": "12.10.5-rc.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -201,5 +201,5 @@
|
|
|
201
201
|
"publishConfig": {
|
|
202
202
|
"access": "public"
|
|
203
203
|
},
|
|
204
|
-
"gitHead": "
|
|
204
|
+
"gitHead": "1b249444fef8e63a26ee518b8d49c2939b2d3992"
|
|
205
205
|
}
|
|
@@ -87,6 +87,23 @@ describe("ConditionalField component rendering", () => {
|
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
+
describe("ConditionalField spacing", () => {
|
|
91
|
+
it("should reset the bottom margin of its direct child only", () => {
|
|
92
|
+
render(
|
|
93
|
+
<ThemeProvider theme={parseTheme(globalTheme)}>
|
|
94
|
+
<ConditionalField {...defaultProps} />
|
|
95
|
+
</ThemeProvider>,
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const conditionalFieldContent = screen.getByTestId("conditionalFieldContent");
|
|
99
|
+
|
|
100
|
+
expect(conditionalFieldContent).toHaveStyleRule("margin-bottom", "0", { modifier: "> div:last-child" });
|
|
101
|
+
// A descendant selector would also reach every nested field and "Add" button,
|
|
102
|
+
// flattening the spacing of nested ArrayFieldGroups (sc-110266).
|
|
103
|
+
expect(conditionalFieldContent).not.toHaveStyleRule("margin-bottom", "0", { modifier: "div:last-child" });
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
90
107
|
interface IConditionalFieldProps {
|
|
91
108
|
value: string | boolean;
|
|
92
109
|
options: any[];
|