@aurodesignsystem-dev/auro-drawer 0.0.0-pr131.5 → 0.0.0-pr134.0

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.
@@ -608,6 +608,71 @@
608
608
  </div>
609
609
 
610
610
 
611
+ <!-- ===================================================================
612
+ SCENARIO 7: auro-drawer with native HTML inputs + button
613
+ =================================================================== -->
614
+ <div class="scenario">
615
+ <h2><span class="badge">7</span>auro-drawer with <strong>native HTML</strong> inputs + button</h2>
616
+ <div class="description">
617
+ Same auro-drawer shell as Scenario 1, but the form elements are plain
618
+ <code>&lt;input&gt;</code> and <code>&lt;button&gt;</code> — no web
619
+ components inside the content. Use this to isolate whether focus-ring
620
+ visibility issues are caused by auro-input/auro-button or by the drawer
621
+ itself.
622
+ </div>
623
+
624
+ <div class="trigger-zone">
625
+ <auro-button id="openScenario7">Open drawer (native inputs)</auro-button>
626
+ </div>
627
+
628
+ <auro-drawer id="scenario7Drawer">
629
+ <span slot="header">Drawer — Native Inputs</span>
630
+ <div slot="content">
631
+ <p>These are plain <code>&lt;input&gt;</code> elements, not auro-input.</p>
632
+ <div style="margin-bottom: 16px;">
633
+ <label for="s7input1" style="display:block; margin-bottom:4px; font-size:0.875rem;">First name</label>
634
+ <input id="s7input1" type="text" style="width:100%; padding:8px; font-size:1rem; box-sizing:border-box;" />
635
+ </div>
636
+ <div>
637
+ <label for="s7input2" style="display:block; margin-bottom:4px; font-size:0.875rem;">Last name</label>
638
+ <input id="s7input2" type="text" style="width:100%; padding:8px; font-size:1rem; box-sizing:border-box;" />
639
+ </div>
640
+ </div>
641
+ <div slot="footer">
642
+ <button id="closeScenario7" style="padding:8px 20px; font-size:1rem; cursor:pointer;">Submit</button>
643
+ </div>
644
+ </auro-drawer>
645
+
646
+ <div class="checklist">
647
+ <h3>Keyboard Behavior Checklist</h3>
648
+ <label>
649
+ <input type="checkbox" />
650
+ <span><span class="behavior">Open → Initial focus</span>: Focus lands on the close button (×).</span>
651
+ </label>
652
+ <label>
653
+ <input type="checkbox" />
654
+ <span><span class="behavior">Tab forward</span>: Tab moves close button → Input 1 → Input 2 → Submit.</span>
655
+ </label>
656
+ <label>
657
+ <input type="checkbox" />
658
+ <span><span class="behavior">Tab wraps</span>: Tab from Submit wraps back to close button.</span>
659
+ </label>
660
+ <label>
661
+ <input type="checkbox" />
662
+ <span><span class="behavior">Shift+Tab backward</span>: Reverse order works correctly.</span>
663
+ </label>
664
+ <label>
665
+ <input type="checkbox" />
666
+ <span><span class="behavior">Escape closes</span>: Pressing Escape closes the drawer.</span>
667
+ </label>
668
+ <label>
669
+ <input type="checkbox" />
670
+ <span><span class="behavior">Focus returns to trigger</span>: After closing, focus returns to the trigger button.</span>
671
+ </label>
672
+ </div>
673
+ </div>
674
+
675
+
611
676
  <!-- ===================================================================
612
677
  ASSISTIVE TECHNOLOGY
613
678
  =================================================================== -->
@@ -694,6 +759,7 @@
694
759
  wireDrawer('openScenario4', 'scenario4Drawer', 'closeScenario4');
695
760
  wireDrawer('openScenario5', 'scenario5Drawer', 'closeScenario5');
696
761
  wireDrawer('openScenario6', 'scenario6Drawer', 'closeScenario6');
762
+ wireDrawer('openScenario7', 'scenario7Drawer', 'closeScenario7');
697
763
  </script>
698
764
 
699
765
  </body>
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem-dev/auro-drawer",
10
- "version": "0.0.0-pr131.5",
10
+ "version": "0.0.0-pr134.0",
11
11
  "description": "auro-drawer HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",
@@ -31,6 +31,7 @@
31
31
  "@aurodesignsystem/auro-library": "^5.5.4",
32
32
  "@aurodesignsystem/design-tokens": "^8.7.0",
33
33
  "@aurodesignsystem/webcorestylesheets": "^10.1.4",
34
+ "@playwright/test": "^1.58.2",
34
35
  "@web/test-runner-commands": "^0.9.0",
35
36
  "baseline-browser-mapping": "^2.10.0",
36
37
  "husky": "^9.1.7"
@@ -62,7 +63,9 @@
62
63
  "test": "auro test",
63
64
  "test:watch": "auro test --watch",
64
65
  "test:coverage": "auro test --coverage-report --open",
65
- "prepare": "husky"
66
+ "prepare": "husky",
67
+ "test:e2e": "playwright test --config=playwright.config.js",
68
+ "test:e2e:video": "playwright test --config=playwright.video.config.js && playwright show-report"
66
69
  },
67
70
  "exports": {
68
71
  "./package.json": "./package.json",