Skip to content

Commit d3c2d5a

Browse files
Merge pull request #163 from quid/fix/QUID-27293-react-dropdown-width
fix: react-dropdown width
2 parents 582b680 + 8d93b37 commit d3c2d5a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/react-dropdown/src/Categories.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const Category = styled.main`
4646
display: flex;
4747
flex-direction: ${props => (props.twoColumn ? 'row' : 'column')};
4848
flex-grow: 1;
49+
width: 100%;
4950
`;
5051

5152
export const Divider = styled.section`

packages/react-dropdown/src/Items.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const Items = styled.ul`
4141
display: flex;
4242
flex-direction: column;
4343
flex-grow: 1;
44+
width: 100%;
4445
`;
4546

4647
export const HIGHLIGHTED = (props: { theme: Object }) =>

packages/react-dropdown/src/__snapshots__/index.test.js.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ exports[`renders an open dropdown 1`] = `
7373
-webkit-flex-grow: 1;
7474
-ms-flex-positive: 1;
7575
flex-grow: 1;
76+
width: 100%;
7677
}
7778
7879
.emotion-2 {
@@ -304,6 +305,7 @@ exports[`renders an open dropdown with categories 1`] = `
304305
-webkit-flex-grow: 1;
305306
-ms-flex-positive: 1;
306307
flex-grow: 1;
308+
width: 100%;
307309
}
308310
309311
.emotion-6 {
@@ -352,6 +354,7 @@ exports[`renders an open dropdown with categories 1`] = `
352354
-webkit-flex-grow: 1;
353355
-ms-flex-positive: 1;
354356
flex-grow: 1;
357+
width: 100%;
355358
}
356359
357360
.emotion-2 {
@@ -848,6 +851,7 @@ exports[`renders an open dropdown with categories and twoColumn 1`] = `
848851
-webkit-flex-grow: 1;
849852
-ms-flex-positive: 1;
850853
flex-grow: 1;
854+
width: 100%;
851855
}
852856
853857
.emotion-4 {
@@ -900,6 +904,7 @@ exports[`renders an open dropdown with categories and twoColumn 1`] = `
900904
-webkit-flex-grow: 1;
901905
-ms-flex-positive: 1;
902906
flex-grow: 1;
907+
width: 100%;
903908
}
904909
905910
.emotion-2 {
@@ -1459,6 +1464,7 @@ exports[`using arrow down should hover on element 1`] = `
14591464
-webkit-flex-grow: 1;
14601465
-ms-flex-positive: 1;
14611466
flex-grow: 1;
1467+
width: 100%;
14621468
}
14631469
14641470
.emotion-0 {
@@ -1609,6 +1615,7 @@ exports[`using useFilter should only return items that match the input value 1`]
16091615
-webkit-flex-grow: 1;
16101616
-ms-flex-positive: 1;
16111617
flex-grow: 1;
1618+
width: 100%;
16121619
}
16131620
16141621
.emotion-4 {

0 commit comments

Comments
 (0)