ngx-strata 0.4.0 → 0.4.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-strata",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "A simple UI framework for quickly prototyping angular applications with a bit of flair.",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -235,6 +235,7 @@ The modal and modal footer expose internal CSS custom properties mapped to desig
235
235
 
236
236
  ## Accessibility & Keyboard Navigation
237
237
  - **ARIA Roles**: `<st-modal>` automatically includes `role="dialog"` and `aria-modal="true"`.
238
+ - **Initial Focus & Autofocus**: Focus is placed on the modal container without displaying an outline. If an element inside the modal explicitly has the `autofocus` attribute, focus is directed to that element instead.
238
239
  - **Focus Trapping**: Tabbing through interactive elements inside the modal wraps around automatically (`Tab` and `Shift + Tab`).
239
240
  - **Focus Restoration**: Focus is returned to the element that originally had focus prior to opening the modal upon closure.
240
241
  - **Escape Key Dismissal**: Pressing the `Escape` key dismisses the topmost modal unless `disableBackdropClosure: true` is configured.
@@ -714,6 +714,7 @@ declare class StrataModalComponent implements OnInit, AfterViewInit, OnDestroy {
714
714
  ngOnDestroy(): void;
715
715
  ngAfterViewInit(): void;
716
716
  private setInputsOnInjectedComponent;
717
+ private focusInitialElement;
717
718
  onCardClick(event: MouseEvent): void;
718
719
  onKeydown(event: KeyboardEvent): void;
719
720
  private getFocusableElements;