primer_view_components 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/components/primer/alpha/action_bar_element.js +7 -1
- data/app/components/primer/alpha/action_bar_element.ts +7 -1
- data/lib/primer/view_components/version.rb +1 -1
- metadata +1 -1
@@ -60,7 +60,13 @@ let ActionBarElement = class ActionBarElement extends HTMLElement {
|
|
60
60
|
}
|
61
61
|
resizeObserver.observe(this);
|
62
62
|
instersectionObserver.observe(this);
|
63
|
-
requestAnimationFrame(() =>
|
63
|
+
requestAnimationFrame(() => {
|
64
|
+
// This overflow visible is needed for browsers that don't support PopoverElement
|
65
|
+
// to ensure the menu and tooltips are visible when the action bar is in a collapsed state
|
66
|
+
// once popover is fully supported we can remove this.style.overflow = 'visible'
|
67
|
+
this.style.overflow = 'visible';
|
68
|
+
this.update();
|
69
|
+
});
|
64
70
|
}
|
65
71
|
disconnectedCallback() {
|
66
72
|
resizeObserver.unobserve(this);
|
@@ -50,7 +50,13 @@ class ActionBarElement extends HTMLElement {
|
|
50
50
|
resizeObserver.observe(this)
|
51
51
|
instersectionObserver.observe(this)
|
52
52
|
|
53
|
-
requestAnimationFrame(() =>
|
53
|
+
requestAnimationFrame(() => {
|
54
|
+
// This overflow visible is needed for browsers that don't support PopoverElement
|
55
|
+
// to ensure the menu and tooltips are visible when the action bar is in a collapsed state
|
56
|
+
// once popover is fully supported we can remove this.style.overflow = 'visible'
|
57
|
+
this.style.overflow = 'visible'
|
58
|
+
this.update()
|
59
|
+
})
|
54
60
|
}
|
55
61
|
|
56
62
|
disconnectedCallback() {
|