Problem/Motivation

Right now we have two ways of using icons in aGov. There is a custom module called text_icon and we are also using linkicon. The way each of them are used is different which is confusing and the UX for both need work.

Proposed resolution

Replace both of these with an SVG upload field, possibly a new contrib module.

Remaining tasks

  • Write the module.
  • Replace two modules in aGov with one.

User interface changes

A proper way to specify and use a library of icons.

API changes

None.

Data model changes

New fields on key content entities.

Comments

Sam152 created an issue. See original summary.

Sam152’s picture

Assigned: Unassigned » kim.pepper

I think you were working on this Kim?

kim.pepper’s picture

I started on https://github.com/previousnext/svg_sprite which is in it's formative stage.

Had a chat with @larowlan about how to implement the entity_reference part, which is:

  • Make SpriteField inherit from EntityReferenceField: override the configurable bits to hard code to SvgSprite entity
  • Make SpriteWidget inherit from EntityReferenceWidget
  • Others?
Sam152’s picture

Assigned: kim.pepper » benjy