From 5b8de73cdf3de5ff6a90c5119404a001a476b406 Mon Sep 17 00:00:00 2001 From: Brian Geiger Date: Thu, 26 Aug 2021 14:44:40 -0400 Subject: [PATCH] Fix a11y for display list in node card by removing divs --- .../addon/components/node-card/template.hbs | 117 ++++++++---------- 1 file changed, 50 insertions(+), 67 deletions(-) diff --git a/lib/osf-components/addon/components/node-card/template.hbs b/lib/osf-components/addon/components/node-card/template.hbs index 02477dffe64..38fedb8a3c6 100644 --- a/lib/osf-components/addon/components/node-card/template.hbs +++ b/lib/osf-components/addon/components/node-card/template.hbs @@ -98,80 +98,63 @@ {{#if @node}}
{{#if @node.isRegistration}} -
-
- {{t 'node_card.registration_template'}} -
-
- {{@node.registrationSchema.name}} -
-
-
-
- {{t 'node_card.registry'}} -
-
- {{@node.provider.name}} -
-
- {{/if}} -
-
- {{t (concat 'node_card.' @node.nodeType '.timestamp_label')}} +
+ {{t 'node_card.registration_template'}}
-
- {{moment @node.dateCreated}} -
-
-
-
- {{t 'node_card.last_updated'}} +
+ {{@node.registrationSchema.name}} +

+
+ {{t 'node_card.registry'}}
-
- {{moment @node.dateModified}} -
-
-
-
+ {{@node.provider.name}} +
+ {{/if}} +
+ {{t (concat 'node_card.' @node.nodeType '.timestamp_label')}} +
+
+ {{moment @node.dateCreated}} +

+
+ {{t 'node_card.last_updated'}} +
+
+ {{moment @node.dateModified}} +

+
+ {{t 'node_card.contributors'}} +
+
+ +

+
+ {{t 'node_card.description'}} +
+
+ {{@node.description}} +

+ {{#if (and this.showTags @node.tags)}} +
- {{t 'node_card.contributors'}} + {{t 'node_card.tags'}}
-
-
-
-
- {{t 'node_card.description'}} -
-
- {{@node.description}} -
-
- {{#if (and this.showTags @node.tags)}} -
-
- {{t 'node_card.tags'}} -
-
- -
-
{{/if}}