Skip to content

Commit ad9a376

Browse files
committed
fix linting, disable require-context-role on dropdown example as it requires an invalid fix
1 parent 2d0c408 commit ad9a376

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

addon/components/au-main-header.gts

+5-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export default class AuMainHeader extends Component<AuMainHeaderSignature> {
5555
Naar de hoofdinhoud
5656
</a>
5757
</div>
58-
<nav aria-label="Informatie en instellingen" class="au-c-main-header__actions">
58+
<nav
59+
aria-label="Informatie en instellingen"
60+
class="au-c-main-header__actions"
61+
>
5962
<ul class="au-c-list-horizontal">
6063
{{#if @contactRoute}}
6164
<li class="au-c-list-horizontal__item">
@@ -85,11 +88,7 @@ class NavigationNarrator extends Component {
8588
}
8689

8790
<template>
88-
<div
89-
aria-live="assertive"
90-
aria-atomic="true"
91-
aria-relevant="all"
92-
>
91+
<div aria-live="assertive" aria-atomic="true" aria-relevant="all">
9392
<span class="au-u-hidden-visually">
9493
{{this.activeRoute}}
9594
</span>

stories/5-components/Brand/AuMainHeader.stories.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default {
1515
},
1616
contactLabel: {
1717
control: 'text',
18-
description: 'Set the label for the contact link (default: Contacteer ons)',
18+
description:
19+
'Set the label for the contact link (default: Contacteer ons)',
1920
},
2021
},
2122
parameters: {

stories/5-components/Navigation/AuDropdown.stories.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default {
4747

4848
const Template = (args) => ({
4949
template: hbs`
50+
{{! template-lint-disable require-context-role }}
5051
<AuDropdown
5152
@title={{this.title}}
5253
@alignment={{this.alignment}}
@@ -64,12 +65,15 @@ const Template = (args) => ({
6465
<AuButton @skin="link" @icon="logout" role="menuitem">
6566
Afmelden
6667
</AuButton>
67-
</AuDropdown>`,
68+
</AuDropdown>
69+
{{! template-lint-enable require-context-role }}
70+
`,
6871
context: args,
6972
});
7073

7174
const TemplateSeparator = (args) => ({
7275
template: hbs`
76+
{{! template-lint-disable require-context-role }}
7377
<AuDropdown
7478
@title={{this.title}}
7579
@alignment={{this.alignment}}
@@ -101,9 +105,12 @@ const TemplateSeparator = (args) => ({
101105
<AuButton @alert="true" @skin="link" @icon="bin" role="menuitem">
102106
Verwijder
103107
</AuButton>
104-
</AuDropdown>`,
108+
</AuDropdown>
109+
{{! template-lint-enable require-context-role }}
110+
`,
105111
context: args,
106112
});
113+
/* prettier-ignore-end */
107114

108115
export const Component = Template.bind({});
109116
Component.args = {

0 commit comments

Comments
 (0)