Problems
When reusing the OOUI popover component in Wikidata, we detected a couple of issues:
- The close (X) button in the top right corner of the popup overlaps with the header (element label) content:
- The bottom padding is reduced to 5px (insufficient) when a checkbox element is included in the popover's body:
Expected outcome
- The popover label should preserve its end spacing (currently a 12px margin) and not overlap with the close button. The label should therefore wrap if necessary.
- The 8px margin that exists between the popover text and the bottom border should be preserved in case other elements are included in the popover's body (a checkbox, in this case).
Check the OOUI demo for reference |
Acceptance criteria
- The close button, used to dismiss the popover, doesn't overlap with the text included in the popover's heading
- There's sufficient spacing between the "Don't show this again" popover checkbox and the component's bottom margin
Open questions
WMDE needs a recommendation on the best way to proceed: wait for a fix in OOUI, apply local adjustments (or any other alternative?).