Skip to content
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

Tweak default react-dates styling #1158

Merged
merged 1 commit into from
May 8, 2018

Conversation

majapw
Copy link
Collaborator

@majapw majapw commented May 4, 2018

This is to align the react-dates defaults a bit better with Airbnb's brand. They're pretty subtle tweaks.

I decided to hide the arrow on small inputs because the text was overflowing the area.

to: @garrettberg @ljharb

@majapw majapw added the semver-patch: fixes/refactors/etc Anything that's not major or minor. label May 4, 2018
@ljharb
Copy link
Member

ljharb commented May 4, 2018

Can you show a before/after screenshot, particularly on the small breakpoint?

@coveralls
Copy link

coveralls commented May 4, 2018

Coverage Status

Coverage increased (+0.02%) to 84.841% when pulling 3d8b054 on maja-adjust-inputs-to-match-default-airbnb-styles into 86cde2f on master.

@majapw
Copy link
Collaborator Author

majapw commented May 6, 2018

Sure @ljharb !

Before (small is second):
screen shot 2018-05-06 at 8 31 21 pm
screen shot 2018-05-06 at 8 31 33 pm

After (small is second):
screen shot 2018-05-06 at 8 31 09 pm
screen shot 2018-05-06 at 8 31 00 pm

@ljharb
Copy link
Member

ljharb commented May 6, 2018

Hmm - could we use a shorter arrow instead of removing it entirely?

@majapw
Copy link
Collaborator Author

majapw commented May 6, 2018

@ljharb we use a dash (-) sometimes on the site, which is something I considered. Does that seem reasonable?

@majapw
Copy link
Collaborator Author

majapw commented May 6, 2018

The important thing for me is that the date doesn't get cut off.

@ljharb
Copy link
Member

ljharb commented May 6, 2018

Oh sure, i think any visual separator (altho better if it had a direction) is better than nothing. I agree the dates are the priority.

@ljharb
Copy link
Member

ljharb commented May 6, 2018

there’s a Unicode for a triangle pointing right that might fit

@majapw majapw force-pushed the maja-adjust-inputs-to-match-default-airbnb-styles branch from b81f065 to 3d8b054 Compare May 7, 2018 18:42
@majapw
Copy link
Collaborator Author

majapw commented May 7, 2018

I like the simplest option here:
screen shot 2018-05-07 at 8 40 44 pm

PTAL @ljharb

@majapw majapw merged commit d8ecf3e into master May 8, 2018
@majapw majapw deleted the maja-adjust-inputs-to-match-default-airbnb-styles branch May 8, 2018 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch: fixes/refactors/etc Anything that's not major or minor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants