django-cms / djangocms-admin-style

django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
http://www.django-cms.org/
Other
412 stars 116 forks source link

fix: Remove unused icon css #472

Closed fsbraun closed 1 year ago

fsbraun commented 1 year ago

djangocms-admin-style adds its own icon font (for the well-known symbols to add etc.). Besides providing css to style the admin the package adds css to allow using those icons by other apps in the admin.

This PR removes the css for using the djangocms-admin-style icons in other apps to avoid the conflict between the icon positions. The icons themselves remain untouched and will appear as usual.

codecov[bot] commented 1 year ago

Codecov Report

Merging #472 (457617f) into master (d19362f) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #472   +/-   ##
=======================================
  Coverage   34.28%   34.28%           
=======================================
  Files           1        1           
  Lines          35       35           
  Branches        1        1           
=======================================
  Hits           12       12           
  Misses         23       23           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

fsbraun commented 1 year ago

Thanks!

DmytroLitvinov commented 1 year ago

Hi @marksweb , We are still using djangocms-admin-style and django-admin-shortcuts and we found out that starting version 3.2.1 shortcuts are not aligned. Can we move back @import "components/shortcuts"; into a new version? The solution I used to make it work for us was taken from that issue https://github.com/alesdotio/django-admin-shortcuts/issues/34

P.S. In case if someone needs same solution, you can take a look it here

marksweb commented 1 year ago

@DmytroLitvinov Is components/shortcuts specific to icons in that package?

DmytroLitvinov commented 1 year ago

Seems like not. So I think icon function can be removed file components/shortcuts

fsbraun commented 1 year ago

@DmytroLitvinov Thanks for pointing out this issue!

Can you check if this solution works for you: Replace the djangocms-admin-style requirement by git+https://github.com/fsbraun/djangocms-admin-style@fix/django_shortcuts ?

It includes the styling but not the icons.

If it works, I can immediately create the PR.

DmytroLitvinov commented 1 year ago

@fsbraun ,

Yes, it works 👍

image
fsbraun commented 1 year ago

@DmytroLitvinov See #480 and #481