feat(ui): support invisible resizable split separators
This commit is contained in:
@@ -61,3 +61,15 @@ test("SplitPane is registered, documented, cataloged and keyboard-addressable",
|
||||
assert.match(docs, /## SplitPane/);
|
||||
assert.match(catalog, /<SplitPane/);
|
||||
});
|
||||
|
||||
|
||||
test("invisible divider retains an accessible resize target", () => {
|
||||
const markup = renderToStaticMarkup(createElement(SplitPane, {
|
||||
primary: "Camera", secondary: "Map", primarySize: 40,
|
||||
onPrimarySizeChange: () => {}, separatorLabel: "Resize", separatorAppearance: "invisible",
|
||||
}));
|
||||
assert.match(markup, /data-separator-appearance="invisible"/);
|
||||
assert.match(markup, /role="separator"/);
|
||||
assert.match(markup, /tabindex="0"/);
|
||||
assert.match(markup, /aria-valuenow="40"/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user