@ndla/ui 50.6.2 → 50.6.3

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.
@@ -21,14 +21,6 @@ const FileListSection = styled.section`
21
21
  padding: 0 0 ${spacing.normal} ${spacing.normal};
22
22
  border-left: 2px solid ${colors.brand.greyLightest};
23
23
  font-family: ${fonts.sans};
24
-
25
- [data-icon] {
26
- margin-top: 3px;
27
- flex-shrink: 0;
28
- margin-right: ${spacing.small};
29
- height: 18px;
30
- width: 18px;
31
- }
32
24
  `;
33
25
 
34
26
  const FileListHeaderWrapper = styled.div`
@@ -84,11 +84,10 @@ const LinkBlock = ({ title, language, date, url, path }: Props) => {
84
84
  const locale = language === 'nb' ? nb : language === 'nn' ? nn : enGB;
85
85
  return format(new Date(date), 'dd. LLLL yyyy', { locale });
86
86
  }, [date, language]);
87
-
88
87
  return (
89
88
  <StyledSafeLink to={href}>
90
89
  <InfoWrapper>
91
- <Heading element="h3" margin="none" headingStyle="h3" lang={language}>
90
+ <Heading element="h3" margin="none" headingStyle="h3" lang={language === 'nb' ? 'no' : language}>
92
91
  {title}
93
92
  </Heading>
94
93
  {date && (
@@ -244,7 +244,7 @@ const ResourceItem = ({
244
244
  <InlineContainer>
245
245
  <ResourceLink
246
246
  to={path}
247
- lang={language}
247
+ lang={language === 'nb' ? 'no' : language}
248
248
  aria-current={active ? 'page' : undefined}
249
249
  aria-describedby={describedBy}
250
250
  >
@@ -1041,7 +1041,7 @@ const messages = {
1041
1041
  markAll: 'Mark all as read',
1042
1042
  subscribe: 'You will now be notified of new replies to this topic',
1043
1043
  unsubscribe: 'You have turned off notification of new replies to this topic',
1044
- commentedOn: 'commented on the post <i>{{title}}</i> which you follow',
1044
+ commentedOn: 'commented on the post <i>{{title}}</i>',
1045
1045
  },
1046
1046
  topicsBy: 'Topics by',
1047
1047
  },
@@ -1040,7 +1040,7 @@ const messages = {
1040
1040
  markAll: 'Merk alle som lest',
1041
1041
  subscribe: 'Du får nå varsling om nye svar på dette innlegget',
1042
1042
  unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget',
1043
- commentedOn: 'svarte på innlegget <i>{{title}}</i> som du følger',
1043
+ commentedOn: 'svarte på innlegget <i>{{title}}</i>',
1044
1044
  },
1045
1045
  topicsBy: 'Innlegg av',
1046
1046
  },
@@ -1040,7 +1040,7 @@ const messages = {
1040
1040
  markAll: 'Merk alle som lest',
1041
1041
  subscribe: 'Du får no varsling om nye svar på dette innlegget',
1042
1042
  unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget',
1043
- commentedOn: 'svarte på innlegget <i>{{title}}</i> som du følger',
1043
+ commentedOn: 'svarte på innlegget <i>{{title}}</i>',
1044
1044
  },
1045
1045
  topicsBy: 'Innlegg av',
1046
1046
  },
@@ -1042,7 +1042,7 @@ const messages = {
1042
1042
  markAll: 'Merke visot lohkon',
1043
1043
  subscribe: 'Don oaččut dál dieđu ođđa vástádusaid dán čállosii',
1044
1044
  unsubscribe: 'Don leat heaitán muittuheames ođđa vástádusaid dán čállosii',
1045
- commentedOn: 'vástidii sáhkavuoru <i>{{title}}</i> maid don čuovvut',
1045
+ commentedOn: 'vástidii sáhkavuoru <i>{{title}}</i>',
1046
1046
  },
1047
1047
  topicsBy: 'Sáhkavuorru maid',
1048
1048
  },
@@ -1044,7 +1044,7 @@ const messages = {
1044
1044
  markAll: 'Mïerhkesjh gaajhkesh dovnesh lohkeme',
1045
1045
  subscribe: 'Datne åadtjoeh daelie bïeljelimmiem orre vaestiedassi bïjre daan tjaalegasse',
1046
1046
  unsubscribe: 'Datne tjeakoeslaakan bïeljelamme jis orre vaestiedassh daan påastese',
1047
- commentedOn: 'tjeakoes laakan vaestiedamme <i>{{title}}</i> maam datne dåarjoehtidh',
1047
+ commentedOn: 'tjeakoes laakan vaestiedamme <i>{{title}}</i>',
1048
1048
  },
1049
1049
  topicsBy: 'Vuesiehtimmien gaavhtan',
1050
1050
  },