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

Fix: DateTimePicker styles don't load as expected outside WordPress context #15389

Conversation

jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented May 2, 2019

Closes: #8870

I started this PR with the objective of closing #8870 which is a very old issue. Meanwhile, I noticed the arrow styles referenced on the issue were already fixed, but the component still had some styling problems outside WordPress this PR fixes these problems.

Before:
image

After:
image

How has this been tested?

I pasted the following gist https://gist.github.com/jorgefilipecosta/6e55059202ccbcb683a56f0546ea6f93 on playground/src/index.js.
I executed the playground and verified the DateTimePicker component appears with the same look as it appears inside WordPress context e.g: the post scheduler.

@jorgefilipecosta jorgefilipecosta added [Type] Bug An existing feature does not function as intended [Feature] UI Components Impacts or related to the UI component system labels May 2, 2019
@jorgefilipecosta jorgefilipecosta requested a review from mmtr May 2, 2019 11:09
@youknowriad youknowriad added the Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code label May 6, 2019
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jorgefilipecosta jorgefilipecosta merged commit 2f4a6f1 into master Jun 3, 2019
@jorgefilipecosta jorgefilipecosta deleted the fix/datetimepicker-component-styles-dont-load-as-expected branch June 3, 2019 10:04
@jorgefilipecosta
Copy link
Member Author

Hi @aduth I tried to removed the input styles, and the result was unexpected:
Screenshot 2019-06-03 at 10 59 44

So I decided to keep them if I missed something feel free to comment, and I will open a follow-up PR.

@youknowriad youknowriad added this to the Gutenberg 5.9 milestone Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] UI Components Impacts or related to the UI component system Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DateTimePicker: Previous/Next month wrongly styled
3 participants