diff --git a/canvas_modules/common-canvas/__tests__/common-properties/controls/checkbox-test.js b/canvas_modules/common-canvas/__tests__/common-properties/controls/checkbox-test.js index 706f14f000..dcf7a32b8b 100644 --- a/canvas_modules/common-canvas/__tests__/common-properties/controls/checkbox-test.js +++ b/canvas_modules/common-canvas/__tests__/common-properties/controls/checkbox-test.js @@ -154,7 +154,7 @@ describe("checkbox control tests", () => { propertyId={propertyId} /> ); - const checkboxWrapper = wrapper.find("div[data-id='properties-test-checkbox']"); + const checkboxWrapper = wrapper.find("div[data-id='properties-test-checkbox'] > div"); expect(checkboxWrapper.hasClass("hide")).to.equal(true); }); it("checkbox renders correctly in a table", () => { diff --git a/canvas_modules/common-canvas/__tests__/common-properties/controls/structuretable-test.js b/canvas_modules/common-canvas/__tests__/common-properties/controls/structuretable-test.js index 7f51de00ec..e5642cc991 100644 --- a/canvas_modules/common-canvas/__tests__/common-properties/controls/structuretable-test.js +++ b/canvas_modules/common-canvas/__tests__/common-properties/controls/structuretable-test.js @@ -542,7 +542,7 @@ describe("condition renders correctly with structure table control", () => { propertyUtils.openSummaryPanel(wrapper, "dummy_types-summary-panel"); // verify the table is HIDDEN - const cellControlDiv = wrapper.find("div[data-id='properties-dummy_types_0_4']"); + const cellControlDiv = wrapper.find("div[data-id='properties-dummy_types_0_4']").find(".properties-checkbox"); expect(cellControlDiv.hasClass("hide")).to.be.true; expect(renderedController.getControlState({ name: "dummy_types", row: 0, col: 4 })).to.equal("hidden"); }); diff --git a/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.jsx b/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.jsx index fc57b25e75..a5d561763d 100644 --- a/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.jsx +++ b/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.jsx @@ -69,18 +69,18 @@ class CheckboxControl extends React.Component { ); return ( -
- - {tooltipIcon} +
+
+ + {tooltipIcon} +
); diff --git a/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.scss b/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.scss index d43ffef1d7..266cfb19e5 100644 --- a/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.scss +++ b/canvas_modules/common-canvas/src/common-properties/controls/checkbox/checkbox.scss @@ -27,9 +27,6 @@ .bx--form-item.bx--checkbox-wrapper { flex: initial; // override carbon style to show tooltipIcon next to checkbox label } - .properties-validation-message { - flex: 0 1 100%; - } &.hide { display: none; }