-
Notifications
You must be signed in to change notification settings - Fork 64
Fix inline popover content taking up space #870
Conversation
ref="popoverRef" | ||
class="bg-white border border-light-gray rounded-sm shadow max-w-max" | ||
:class="{ [`z-[${zIndex}]`]: zIndex !== undefined }" | ||
:tabindex="typeof $props.tabindex !== 'undefined' ? $props.tabindex : -1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can directly refer to props by name in the template.
:tabindex="typeof $props.tabindex !== 'undefined' ? $props.tabindex : -1" | |
:tabindex="typeof tabindex !== 'undefined' ? tabindex : -1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this now, it must have meant to have been $attrs
instead of $props
because there's no tabindex
prop... but I cannot figure out why this was necessary. We don't pass tabindex in at VPopover or anywhere else VPopoverContent is used so it seems like dead code to me. VPopover doesn't accept it as a prop that it forwards either so it's not even technically possible for any consumer of VPopover to pass it.
Anyway, set it to constant of -1 in 43d0c29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking comment. Looking good otherwise, especially pleased to see one less <style>
.
@dhruvkb I think you'll need to merge this into your branch yourself if you want it 🙂 Or else we'll need a second person to approve this interstitial PR 😛 |
Fixes
Fixes popover wonkiness on iOS outlined here: #850 (review)
Description
Testing Instructions
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin