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

Migrate CSS of PostTime and PostStatus blocks to CSS, plus a few tweaks #30963

Merged
merged 3 commits into from
Feb 25, 2019

Conversation

jsnajdr
Copy link
Member

@jsnajdr jsnajdr commented Feb 22, 2019

  • migrate PostTime and PostStatus styles to webpack
  • fix ESLint warning (function definition in connect) in PostStatus devdocs example
  • remove usage of localize from PostTime, as it doesn't use translate. Use withLocalizedMoment to get the moment instance.
  • tweak usage of moment.js ("older than 7 days" test) in PostTime

Finally remove PostStatus usage from EditorPostType. It was never visible anyway because of showIcon=false prop and display: none style. It was added a long time ago in #8679. You can see on the screenshots that the editor looked very differently back then. Then the editor was redesigned to the current look in #11536, where PostStatus was hidden, but not completely removed..

How to test:

  • check the devdocs examples for PostTime and PostStatus
  • check their usage in post and page list
  • check that there's no change in the EditorPostType box in the Classic Editor UI

I hope the PR is not too big 😉

It was never visible anyway because of `showIcon=false` prop and `display: none` style.

It was added a long time ago in #8679. You can see on the screenshots that the editor looked very
differently back then. Then the editor was redesigned to the current look in #11536, where `PostStatus`
was hidden, but not completely removed.
@jsnajdr jsnajdr added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Janitorial labels Feb 22, 2019
@jsnajdr jsnajdr self-assigned this Feb 22, 2019
@matticbot
Copy link
Contributor

@jsnajdr jsnajdr requested a review from a team February 22, 2019 14:54
Copy link
Contributor

@blowery blowery left a comment

Choose a reason for hiding this comment

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

LGTM!

@jsnajdr jsnajdr merged commit 29fcbb6 into master Feb 25, 2019
@jsnajdr jsnajdr deleted the migrate/post-time-status-css branch February 25, 2019 13:18
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants