@primer/view-components 0.31.0-rc.1c9eab10 → 0.31.0-rc.1e5f6225
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.
@@ -55,7 +55,6 @@ const updateWhenVisible = (() => {
|
|
55
55
|
}));
|
56
56
|
resizeObserver.observe(el.ownerDocument.documentElement);
|
57
57
|
el.addEventListener('dialog:close', () => {
|
58
|
-
el.invokerElement?.setAttribute('aria-expanded', 'false');
|
59
58
|
anchors.delete(el);
|
60
59
|
});
|
61
60
|
el.addEventListener('dialog:open', () => {
|
@@ -253,7 +252,6 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
|
|
253
252
|
if (event.target === this.dialog && event.type === 'close') {
|
254
253
|
// Remove data-ready so it can be set the next time the panel is opened
|
255
254
|
this.dialog.removeAttribute('data-ready');
|
256
|
-
this.invokerElement?.setAttribute('aria-expanded', 'false');
|
257
255
|
this.dispatchEvent(new CustomEvent('panelClosed', {
|
258
256
|
detail: { panel: this },
|
259
257
|
bubbles: true,
|
@@ -303,7 +301,6 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
|
|
303
301
|
show() {
|
304
302
|
this.updateAnchorPosition();
|
305
303
|
this.dialog.showModal();
|
306
|
-
this.invokerElement?.setAttribute('aria-expanded', 'true');
|
307
304
|
const event = new CustomEvent('dialog:open', {
|
308
305
|
detail: { dialog: this.dialog },
|
309
306
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.31.0-rc.
|
3
|
+
"version": "0.31.0-rc.1e5f6225",
|
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",
|