HSLdevcom / HSLdevcom/digitransit-ui

Styling of DTAutosuggest input icons?

Open
#5,023 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
267
Forks
145
Avg merge
1d 15h
Merged PRs (30d)
75

Description

For one of our instances, I'd like to use different from/to marker icons/colors.

Currently, the mapMarker icon is hardcoded in digitransit-component-autosuggest-panel (e.g. here).

The colors are coded in digitransit-component-autosuggest's scss:

image

What would be the best way to allow customizing from/to marker icons/colors for single instances?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at digitransit-component/packages/digitransit-component-autosuggest-panel/src/index.js around line 467, where the mapMarker icon is hardcoded, and inspect the related styles in digitransit-component-autosuggest's SCSS. Trace how the autosuggest components receive instance-specific configuration and define a customization approach that supports both from/to marker icons and colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, scss
Domain
design, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.