- Card title
+
+ Card title
+
= ({
- title,
+ title: titleProp,
button,
description,
isDisabled,
@@ -39,10 +39,18 @@ export const NoDataCard: FunctionComponent = ({
return button;
}
// Default footer action is a button with the provided or default string
- return {button || title};
+ return {button || titleProp};
};
+
const cardDescription = description || defaultDescription;
+ // Fix the need for an a11y title even though the button exists by setting to screen reader only
+ const title = titleProp ? (
+
+ {titleProp}
+
+ ) : null;
+
return (
{
await security.testUser.restoreDefaults();
await esArchiver.unload('test/functional/fixtures/es_archiver/message_with_newline');
+ await kibanaServer.savedObjects.cleanStandardList();
await kibanaServer.uiSettings.unset('defaultIndex');
await kibanaServer.uiSettings.unset('doc_table:legacy');
});
diff --git a/test/functional/fixtures/es_archiver/message_with_newline/data.json b/test/functional/fixtures/es_archiver/message_with_newline/data.json
index 3611f2d3878a43..62a2b5bf66fa8c 100644
--- a/test/functional/fixtures/es_archiver/message_with_newline/data.json
+++ b/test/functional/fixtures/es_archiver/message_with_newline/data.json
@@ -1,18 +1,3 @@
-{
- "type": "doc",
- "value": {
- "id": "index-pattern:newline-test",
- "index": ".kibana",
- "source": {
- "index-pattern": {
- "fields": "[]",
- "title": "newline-test"
- },
- "type": "index-pattern"
- }
- }
-}
-
{
"type": "doc",
"value": {
diff --git a/test/functional/fixtures/kbn_archiver/message_with_newline.json b/test/functional/fixtures/kbn_archiver/message_with_newline.json
new file mode 100644
index 00000000000000..44e9d41ebf93ed
--- /dev/null
+++ b/test/functional/fixtures/kbn_archiver/message_with_newline.json
@@ -0,0 +1,14 @@
+{
+ "attributes": {
+ "fields": "[]",
+ "title": "newline-test"
+ },
+ "coreMigrationVersion": "8.4.0",
+ "id": "newline-test",
+ "migrationVersion": {
+ "index-pattern": "8.0.0"
+ },
+ "references": [],
+ "type": "index-pattern",
+ "version": "WzEzLDJd"
+}
\ No newline at end of file