onaio / js-tools

Ona shared JavaScript components and utilities
Apache License 2.0
11 stars 2 forks source link

Establish standard approach for building legend component #186

Open kahummer opened 2 years ago

kahummer commented 2 years ago

Is this a new feature or an enhancement? enhancement Is your feature request related to a problem? Please describe. the current legend implementation on gisidalite provides the legendData (default prop that builds the legend blocks) as a payload standard for building the legend, the good thing is we can override the prop and provide a payload adhering to the same specification though this reduces the benefit of using this package immensely, establishing a standard approach for building legend blocks based on akuko and grp would provide re-usable utilities and avoiding duplication of code in the various code bases. NB* The implementation should allow overriding the utilities in the event this is needed

Additional context The implementation should factor in styling of the component too Establish standard utils to be used based on