-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Mobile Preferences Screen Prototype #1472
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
Mobile Preferences Screen Prototype #1472
Conversation
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.
const textColor = prop('primaryTextColor'); | ||
|
||
const IconButton = styled.button` | ||
width: 3rem; |
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.
Would it make sense to extend from client/common/Button
? No worries if that's overcomplicated. Either way, I'd like this to use remSize
so the measurement can easily be read as pixels.
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.
Sure! I updated it
@@ -0,0 +1,57 @@ | |||
import React from 'react'; |
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.
I think this file could have a more descriptive/specific name since "Selector" feels pretty generic, where this component is specifically being used for a Preference selection.
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.
True. I renamed it to <PreferencePicker />
to be more descriptive
When trying this on my phone, the "On" and "Off" text felt too small. In the light theme, the contrast between "On" being selected or "Off" being selected feels too subtle, though maybe that needs to be addressed in a separate PR. A design idea would be to make the "Settings X" at the top into a bar, with a separate background color, maybe the same color as on the main page (the panel color). |
I increased the option label font-size to |
Sounds good! I think it's worth testing, as when I opened the screen, the hierarchy between "Settings" and "General Settings" felt confusing to me as they are both the same font size and styling. |
@ghalestrilo looks great! I just pushed a commit that re-added the Redux DevTools to App.jsx... maybe this could be done with an environment variable so that you don't have to comment/uncomment it all of the time? |
Part of the Mobile UI project. This PR implements a screen to access and control editor settings.
This PR requires #1467 to be merged
How to test:
MOBILE_ENABLED
flag set totrue
(MOBILE_ENABLED=true npm start
)/mobile
/mobile
routes should not be accessibleI have verified that this pull request:
npm run lint
)Fixes #123