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

Icon storage strategy is needed #3357

Closed
oleq opened this issue Dec 19, 2016 · 8 comments
Closed

Icon storage strategy is needed #3357

oleq opened this issue Dec 19, 2016 · 8 comments

Comments

@oleq
Copy link
Member

oleq commented Dec 19, 2016

ATM basic-styles provides own icons https://github.com/ckeditor/ckeditor5-basic-styles/tree/master/theme/icons, which duplicate with Lark's https://github.com/ckeditor/ckeditor5-theme-lark/tree/master/theme/icons. Also visible in the MT
image

OTOH other modules like Link (or List) use Lark's icons https://github.com/ckeditor/ckeditor5-link/tree/master/theme.

  1. Which strategy is right?
  2. Should we keep icons in Lark?
  3. Should we keep icons in features?

I discovered this inconsistency when satisfying https://github.com/ckeditor/ckeditor5-image/issues/21. Where should I put them?

/cc @Reinmar

@fredck
Copy link
Contributor

fredck commented Dec 19, 2016

In my opinion, icons should be provided by features.

If the Theme provides an icon for a feature it overrides the feature icon. This feature doesn't have to be included right now, though.

@Reinmar
Copy link
Member

Reinmar commented Dec 19, 2016

Totally agree with @fredck.

@oskarwrobel
Copy link
Contributor

I have a problem to imagine how (after introducing inline svg icons imported inside plugin) theme will override plugin icon.

@oleq
Copy link
Member Author

oleq commented Dec 19, 2016

That's a good point, @oskarwrobel. Do you have any solution?

@Reinmar
Copy link
Member

Reinmar commented Dec 19, 2016

I've just noticed that you added object-left/center/right icons to the image feature, which means that e.g. a media feature will not be able to use them (without depending on the image feature). Now I understand why a theme might need to provide some icons. And in case of generic ones like those, I feel that perhaps it'll be better if they land in the theme.

I agreed with Fred's idea that theme's icons should override feature icons, but indeed – this won't be possible with imports and an external bundler (like Webpack) resolving paths... unless, we'll add an option to our plugins for these bundlers to resolve paths in a certain way. Which is something that we'll do anyway for JS. But then, where should those generic icons land? ;|

@fredck
Copy link
Contributor

fredck commented Dec 19, 2016

Core?

@oleq
Copy link
Member Author

oleq commented Dec 19, 2016

I've just noticed that you added object-left/center/right icons to the image feature, which means that e.g. a media feature will not be able to use them

That's why I wrote in the PR that it awaits resolve of this discussion.

@Reinmar
Copy link
Member

Reinmar commented Dec 19, 2016

I'm fine with putting them in the core. So that PR could be moved there.

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

No branches or pull requests

4 participants