-
Notifications
You must be signed in to change notification settings - Fork 179
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
refactor(app): Match wifi dropdown styles to design #2522
Changes from all commits
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 |
---|---|---|
|
@@ -60,11 +60,28 @@ | |
|
||
/* TODO(mc, 2018-10-15): switch wifi select/options to flex ASAP */ | ||
.wifi_dropdown { | ||
max-width: 75%; | ||
max-width: 16.875rem; | ||
|
||
/* TODO(ka, 2018-10-19): This is needed to address an inaccessible positioning element from react-select */ | ||
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. Unfortunately this could not be avoided due to the fact that there are a few elements react-select uses for positioning the dropdown, that are not accessible directly for styling or replacement. There is a portal option I'd like to explore further, but the documentation is lacking. |
||
& > div:not(:first-child) { | ||
box-shadow: none; | ||
background-color: transparent; | ||
} | ||
} | ||
|
||
.wifi_option { | ||
@apply --font-body-1-dark; | ||
|
||
width: 100%; | ||
padding: 0.25rem 0.5rem; | ||
} | ||
|
||
.wifi_name { | ||
display: inline-block; | ||
width: calc(100% - 3rem); | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.wifi_option_icon, | ||
|
@@ -85,6 +102,26 @@ | |
padding-left: 0.25rem; | ||
} | ||
|
||
.dropdown_icon { | ||
position: absolute; | ||
top: 0.2rem; | ||
right: 0.25rem; | ||
width: 1.25rem; | ||
pointer-events: none; | ||
|
||
& svg { | ||
color: var(--c-dark-gray); | ||
} | ||
} | ||
|
||
.options_menu { | ||
background-color: var(--c-light-gray); | ||
position: relative; | ||
top: -2.5rem; | ||
border-radius: 3px; | ||
padding: 0.25rem 0 0.5rem; | ||
} | ||
|
||
.connection_label { | ||
@apply --font-body-1-dark; | ||
|
||
|
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.
Out of curiosity, what is this existence check for? I don't see one for
components.Menu
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.
This is needed so that the new dropdown indicator inherits the CommonProps from the original DropdownIndicator from
react-select
and Flow doesnt explode