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

Styling of DTAutosuggest input icons? #5023

Open
hbruch opened this issue Jun 25, 2024 · 1 comment
Open

Styling of DTAutosuggest input icons? #5023

hbruch opened this issue Jun 25, 2024 · 1 comment

Comments

@hbruch
Copy link
Contributor

hbruch commented Jun 25, 2024

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?

@vesameskanen
Copy link
Member

Good question. Some colors come from style files, some can be defined using props. There should be a consistent solution because adding a new color prop for each icon is probably bad idea (too many icons). Maybe some kind of single 'styles' prop might work; it could contain optional styles for any icon and maybe other stuff as well.

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

2 participants