Skip to content

Commit

Permalink
Force le popover a être toujours dessous pour les checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinratinaud committed Oct 17, 2024
1 parent f307014 commit b85b4db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/form/dsfr/SelectCheckboxes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ const SelectCheckboxes = ({ fieldId, label, hintText, state, stateRelatedMessage
</option>
</select>
</PopoverTrigger>
<PopoverContent className="fr-px-2w fr-py-1w">
<PopoverContent
className="fr-px-2w fr-py-1w"
side="bottom"
sideOffset={0} // Controls space between trigger and popover
avoidCollisions={false}
>
<StyledCheckbox {...props} />
</PopoverContent>
</Popover>
Expand Down

0 comments on commit b85b4db

Please sign in to comment.