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-image (and more layers) should support feature-state #5542

Open
krupupakku opened this issue Feb 24, 2025 · 0 comments
Open

Icon-image (and more layers) should support feature-state #5542

krupupakku opened this issue Feb 24, 2025 · 0 comments
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed

Comments

@krupupakku
Copy link

krupupakku commented Feb 24, 2025

User Story

I'd like for more properties to support feature-state, like icon-image to be able to simulate a selection, updating image consequently and avoid duplicating layers with just a styling difference.

Image Image

Would be fantastic build something like:
'icon-image': ['case', ['boolean', ['feature-state', 'selected'], false], 'my-selected-image', 'my-image'],

Benefits

  • data driven styling
  • less layers needed
  • cleaner for user
@HarelM HarelM added enhancement New feature or request PR is more than welcomed Extra attention is needed labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants