@primer/view-components 0.12.1-rc.79df731f → 0.12.1-rc.da91b0e4

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.
@@ -104,7 +104,7 @@ export class ModalDialogElement extends HTMLElement {
104
104
  if (__classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").signal.aborted) {
105
105
  __classPrivateFieldSet(this, _ModalDialogElement_focusAbortController, new AbortController(), "f");
106
106
  }
107
- focusTrap(this, undefined, __classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").signal);
107
+ focusTrap(this, this.querySelector('[autofocus]'), __classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").signal);
108
108
  overlayStack.push(this);
109
109
  }
110
110
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.12.1-rc.79df731f",
3
+ "version": "0.12.1-rc.da91b0e4",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -3106,6 +3106,19 @@
3106
3106
  "color-contrast"
3107
3107
  ]
3108
3108
  }
3109
+ },
3110
+ {
3111
+ "preview_path": "primer/alpha/dialog/autofocus_element",
3112
+ "name": "autofocus_element",
3113
+ "snapshot": "false",
3114
+ "skip_rules": {
3115
+ "wont_fix": [
3116
+ "region"
3117
+ ],
3118
+ "will_fix": [
3119
+ "color-contrast"
3120
+ ]
3121
+ }
3109
3122
  }
3110
3123
  ],
3111
3124
  "subcomponents": [
@@ -2936,6 +2936,19 @@
2936
2936
  "color-contrast"
2937
2937
  ]
2938
2938
  }
2939
+ },
2940
+ {
2941
+ "preview_path": "primer/alpha/dialog/autofocus_element",
2942
+ "name": "autofocus_element",
2943
+ "snapshot": "false",
2944
+ "skip_rules": {
2945
+ "wont_fix": [
2946
+ "region"
2947
+ ],
2948
+ "will_fix": [
2949
+ "color-contrast"
2950
+ ]
2951
+ }
2939
2952
  }
2940
2953
  ]
2941
2954
  },