Skip to content

Commit

Permalink
fix(1-3334): re-align the dropdown menu with the dropdown (#9188)
Browse files Browse the repository at this point in the history
Makes it so that the dropdown menu sits below the dropdown button,
rather than being offset to the end of the containing flexbox.

The issue was caused by the surrounding container being a flexbox.
This caused the popover anchor to grow to the full height of the box,
making the menu look offset.

By using `align-items: start`, we get around this.

Before

![image](https://github.com/user-attachments/assets/0f044627-05a3-4225-9a25-b20393c40158)


After:

![image](https://github.com/user-attachments/assets/9a6d1d7f-7f18-48d3-abdf-f4bb7c02ba68)
  • Loading branch information
thomasheartman authored Feb 3, 2025
1 parent bf71d39 commit bd12cfc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ const NewHeader = styled('div')(({ theme }) => ({
flexFlow: 'row wrap',
justifyContent: 'space-between',
gap: theme.spacing(2, 4),
alignItems: 'start',
}));

const TrafficInfoBoxes = styled('div')(({ theme }) => ({
Expand Down

0 comments on commit bd12cfc

Please sign in to comment.