@primer/view-components 0.0.119 → 0.0.120-rc.08120bb3

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.
@@ -86,6 +86,7 @@ export class ModalDialogElement extends HTMLElement {
86
86
  return;
87
87
  this.setAttribute('open', '');
88
88
  (_a = __classPrivateFieldGet(this, _ModalDialogElement_instances, "a", _ModalDialogElement_overlayBackdrop_get)) === null || _a === void 0 ? void 0 : _a.classList.remove('Overlay--hidden');
89
+ document.body.style.paddingRight = `${window.innerWidth - document.body.clientWidth}px`;
89
90
  document.body.style.overflow = 'hidden';
90
91
  if (__classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").signal.aborted) {
91
92
  __classPrivateFieldSet(this, _ModalDialogElement_focusAbortController, new AbortController(), "f");
@@ -98,6 +99,7 @@ export class ModalDialogElement extends HTMLElement {
98
99
  return;
99
100
  this.removeAttribute('open');
100
101
  (_b = __classPrivateFieldGet(this, _ModalDialogElement_instances, "a", _ModalDialogElement_overlayBackdrop_get)) === null || _b === void 0 ? void 0 : _b.classList.add('Overlay--hidden');
102
+ document.body.style.paddingRight = '0';
101
103
  document.body.style.overflow = 'initial';
102
104
  __classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").abort();
103
105
  // if #openButton is a child of a menu, we need to focus a suitable child of the menu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.0.119",
3
+ "version": "0.0.120-rc.08120bb3",
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",
@@ -68,7 +68,7 @@
68
68
  "@rollup/plugin-typescript": "^8.3.3",
69
69
  "@typescript-eslint/eslint-plugin": "^5.31.0",
70
70
  "@typescript-eslint/parser": "^5.31.0",
71
- "axe-core": "^4.5.1",
71
+ "axe-core": "^4.6.2",
72
72
  "chokidar-cli": "^3.0.0",
73
73
  "cssnano": "^5.1.13",
74
74
  "eslint": "^8.23.1",
@@ -73,9 +73,7 @@
73
73
  "Primer::Beta::Truncate::TruncateText": "",
74
74
  "Primer::BlankslateComponent": "",
75
75
  "Primer::Box": "",
76
- "Primer::BoxComponent": "",
77
76
  "Primer::ButtonComponent": "",
78
- "Primer::ClipboardCopy": "",
79
77
  "Primer::ConditionalWrapper": "",
80
78
  "Primer::Content": "",
81
79
  "Primer::Dropdown": "",
@@ -1000,8 +1000,6 @@
1000
1000
  },
1001
1001
  "Primer::Box": {
1002
1002
  },
1003
- "Primer::BoxComponent": {
1004
- },
1005
1003
  "Primer::ButtonComponent": {
1006
1004
  "DEFAULT_SCHEME": "default",
1007
1005
  "DEFAULT_SIZE": "medium",
@@ -1031,8 +1029,6 @@
1031
1029
  "medium"
1032
1030
  ]
1033
1031
  },
1034
- "Primer::ClipboardCopy": {
1035
- },
1036
1032
  "Primer::ConditionalWrapper": {
1037
1033
  },
1038
1034
  "Primer::Content": {
@@ -73,9 +73,7 @@
73
73
  "Primer::Beta::Truncate::TruncateText": "alpha",
74
74
  "Primer::BlankslateComponent": "deprecated",
75
75
  "Primer::Box": "stable",
76
- "Primer::BoxComponent": "deprecated",
77
76
  "Primer::ButtonComponent": "deprecated",
78
- "Primer::ClipboardCopy": "deprecated",
79
77
  "Primer::ConditionalWrapper": "alpha",
80
78
  "Primer::Content": "stable",
81
79
  "Primer::Dropdown": "deprecated",