Skip to content

Commit 08a74f7

Browse files
committed
style: lint
1 parent 0d6feb0 commit 08a74f7

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

core/src/components/alert/test/a11y/alert.e2e.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ configs({ directions: ['ltr'] }).forEach(({ config, title }) => {
6161
await testAria(page, 'customAria', 'Custom title', 'Custom description');
6262
});
6363

64-
test('should have aria-labelledby and aria-label added to the button when htmlAttributes is set', async ({ page }) => {
64+
test('should have aria-labelledby and aria-label added to the button when htmlAttributes is set', async ({
65+
page,
66+
}) => {
6567
const didPresent = await page.spyOnEvent('ionAlertDidPresent');
6668

6769
const button = page.locator('#ariaLabelButton');

core/src/components/alert/test/a11y/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ <h1>Alert - A11y</h1>
8383
header: 'Header',
8484
subHeader: 'Subtitle',
8585
message: 'This is an alert message with custom aria attributes passed to the button.',
86-
buttons: [{
87-
text: 'Close',
88-
htmlAttributes: {
89-
ariaLabel: 'close button',
90-
'aria-labelledby': 'close-label',
91-
}
92-
}],
86+
buttons: [
87+
{
88+
text: 'Close',
89+
htmlAttributes: {
90+
ariaLabel: 'close button',
91+
'aria-labelledby': 'close-label',
92+
},
93+
},
94+
],
9395
});
9496
}
9597
</script>

0 commit comments

Comments
 (0)