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

Make which admin script loads determined by filter #2789

Closed
Shelob9 opened this issue Oct 24, 2018 · 2 comments
Closed

Make which admin script loads determined by filter #2789

Shelob9 opened this issue Oct 24, 2018 · 2 comments
Assignees
Labels
enhancement New feature
Milestone

Comments

@Shelob9
Copy link
Collaborator

Shelob9 commented Oct 24, 2018

Default of filter will be new if on main page and false if on any other page.

@Shelob9 Shelob9 added the enhancement New feature label Oct 24, 2018
@Shelob9 Shelob9 added this to the 1.8.0 milestone Oct 24, 2018
@Shelob9 Shelob9 self-assigned this Oct 24, 2018
Shelob9 referenced this issue Oct 24, 2018
@Shelob9 This generates the build version of index.scss, the clients/admin/build/style.min.css still needs to be enqueued and I'm not sure if we want to enqueue css files from the clients folder or move theme and enqueue from the assets folder.
BTW, the admin client is loading these styles via import within the index.js file, once we decide where we enqueue css from we can remove the import.
@Shelob9
Copy link
Collaborator Author

Shelob9 commented Oct 24, 2018

Resolved via 9bf3657 and f1adb08

Now in the admin page, we get new CSS and JS from admin client and in editor we get older version.

@New0 What is left for you to decide is how much of the legacy CSS assets/css/admin.css we want to use. I think that copying that file to a legacy.scss that gets included for now is a good start, then go through and delete non-required CSS (a lot of that shit is for the editor) not worrying about how it effects the editor or other screens that use that CSS (privacy, some add-on admins)

@Shelob9
Copy link
Collaborator Author

Shelob9 commented Nov 20, 2018

clsoe via 9bf3657 and f1adb08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
None yet
Development

No branches or pull requests

1 participant