Skip to content

Commit 186e1ab

Browse files
authored
Merge pull request #384 from creativedotdesign/axe-updates
Axe updates
2 parents 488e577 + cb1c301 commit 186e1ab

32 files changed

+11827
-2203
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ yarn-debug.log
2626

2727
# vitest
2828
*.ts.snap
29+
/test-results/
30+
/playwright-report/
31+
/blob-report/
32+
/playwright/.cache/
33+
34+
# Playwright
35+
/accessibility-reports

header.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class="duration-500 transition-transform transform-gpu <?php echo ($menu_sticky
2828
<?php echo bloginfo('name'); ?>
2929
</a>
3030

31-
<button type="button" class="flex lg:hidden js-menu-toggle" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
31+
<div class="w-[400px] h-10 bg-blue-200">LOGO</div>
32+
33+
<button class="flex lg:hidden js-menu-toggle" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation" data-playwright="open-mobile-menu">
3234
<!-- Hamburger Icon -->
3335
<span class="w-6 h-6">
3436
<?php echo svg(['sprite' => 'hamburger', 'title' => 'Open Menu', 'class' => 'w-full h-full']); ?>
@@ -39,8 +41,10 @@ class="duration-500 transition-transform transform-gpu <?php echo ($menu_sticky
3941

4042
<div class="inactive absolute inset-0 bg-white lg:bg-transparent w-full h-screen lg:h-auto lg:relative lg:w-auto lg:flex lg:items-center" id="main-menu">
4143
<!-- Close Icon -->
42-
<button type="button" class="absolute z-10 w-4 h-4 top-5 right-7 lg:hidden js-menu-toggle">
43-
<?php echo svg(['sprite' => 'close', 'title' => 'Close Menu', 'class' => 'w-full h-full']); ?>
44+
<button class="absolute z-10 w-4 h-4 top-5 right-7 lg:hidden js-menu-toggle"
45+
data-playwright="close-mobile-menu"
46+
>
47+
<?php echo svg(['sprite' => 'icon-close', 'class' => 'w-full h-full']); ?>
4448
</button>
4549

4650
<?php if (has_nav_menu('header_navigation')):

0 commit comments

Comments
 (0)