-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OUR415-314] Fixes eligibility and category lists in Browse Experience #258
Changes from all commits
da97207
c0b198a
e675e37
1640b01
1428afb
c7e7121
ac139b6
e7d924a
4be2bd8
8f8a966
970b00a
3cba11c
e7e19fe
b019b84
e01c50c
8c918ba
b9587cf
40f3ce7
bf2dfa4
50c061a
b2616dd
f657c65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
@import "../../../styles/utils/_helpers.scss"; | ||
@import "../../../styles/utils/_colors.scss"; | ||
|
||
.navigationMenuContainer { | ||
// Important to override react-burger-menu lib styles | ||
display: flex !important; | ||
flex-direction: column; | ||
align-items: center; | ||
Comment on lines
-5
to
-8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: We got rid of the react-burger-menu lib so these declarations are no longer necessary. |
||
|
||
> * { | ||
font-size: 18px; | ||
font-family: Montserrat; | ||
} | ||
.navigationMenuContainer > * { | ||
font-size: 18px; | ||
font-family: Montserrat; | ||
} | ||
|
||
.navigationSubMenu { | ||
|
@@ -22,6 +15,11 @@ | |
border-radius: $rounded-md; | ||
overflow: hidden; | ||
font-weight: 400; | ||
width: max-content; | ||
|
||
@media screen and (max-width: $break-tablet-s) { | ||
top: 46px; | ||
} | ||
} | ||
|
||
.navigationMenuHeader { | ||
|
@@ -92,11 +90,11 @@ | |
|
||
.categoryMenuContainer { | ||
position: relative; | ||
min-width: 160px; | ||
|
||
.navigationSubMenu { | ||
top: 50px; | ||
left: 0; | ||
@include r_max($break-tablet-s) { | ||
width: calc(100vw - $general-spacing-xs); | ||
} | ||
Comment on lines
+95
to
+97
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: This expands the top level category dropdown full width. Had not implemented it yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering - Is there a reason for choosing general-spacing-xs? Or for adding that only on the category dropdown rather the nav dropdown too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only that I discovered this variable defined the correct spacing. |
||
} | ||
|
||
.navigationMenuHeader { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { faker } from "@faker-js/faker"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. praise: cool 😎 |
||
|
||
/** | ||
* Generates an object of categories for use in search refinement components | ||
* | ||
* @param size Customize the number of categories | ||
*/ | ||
export function createRandomCategories(size: number) { | ||
const result: { [key: string]: number } = {}; | ||
|
||
for (let i = 0; i < size; i++) { | ||
// Append incrementor because the current version of faker does not support | ||
// uniqueness | ||
const key = `${faker.company.name()}_${i}`; | ||
const value = faker.number.int(100); | ||
result[key] = value; | ||
} | ||
|
||
return result; | ||
} |
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.
note: Discovered a bug where the filters were not on top.
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.
Speaking of z-indexes. The category dropdown appears to have a higher z-index than the navigation bar. If that would be a quick fix, might make sense to put it in this PR
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.
What browser/resolution is that? I don't even know how to get in that state 😅