Q-Stepper: Allow changing stepper dot icon colour using a custom class #17709
Unanswered
twistmala
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using QStepper component from Quasar and have a question regarding its icon customization. In the documentation for header options, there are properties for
inactive-icon/color
,done-icon/color
,active-icon/color
,error-icon/color
. These works perfectly when using global icon sets like Bootstrap or Material Icons.However, my use case requires custom SVG icons. Here's an example of my implementation:
This gets rendered as:
The issue is that there's no way to apply color to the
<img>
element directly. To handle this, I currently use CSS filters to manipulate the icon color:The problem is that with QStepper, there's no available slot or option to assign a custom class or style to the icons inside the
q-stepper__dot
elements. As a workaround, I'm currently usingonMounted
to find all.q-stepper__dot .q-icon
element and manually apply the desired classes. However, when a step is selected or updated, all the applied classes are removed.Would it make sense to add a feature for this? For instance:
.q-stepper__dot
element directly.This would make working with custom SVGs much easier, especially when styling or recolouring them,
Thank you in advance for your response.
Beta Was this translation helpful? Give feedback.
All reactions