-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Style the li navigation links #27
Comments
Currently it's not possible to modify change the style of the wizard core components (mostly the navigation bar) from outside. The less file you've found is the right place to search for the styles for the horizontal navigation bar. If you're using the vertical layout you'll need to take a look at the less file for the vertical navigation bar, which is a different file. Changing the 5 color variables at the beginning should be enough to change the colors used in the whole navigation bar. |
First, the wizard rocks and saved me a ton of time having to build it myself. Thank you! I'd like to second TMaster, would be great to be able to change the |
I would love to enhance the possibility to style the wizard from outside the component/module. If you know of a solution to this problem, or somehow got it working please send me a message so I can add it to the demo and/or enhance |
@madoar The "problem" with the "extra" attributes is because in Angular each component has it's own scope. This principle has been also taken in place with styling. Angular it is called encapsulation. It's very simple to remove the encapsulation, but then you're going to have some issues with "general styling" if someone by accident uses the same CSS classes. My thought on this is maybe give the possibility to point to a CSS file via a parameter. Or use your own encapsulation in CSS, something like:
And so on. There are several options. But for me the more proper way to do this is give the possibility to load a custom css file into the component. Just my 2 cents 😉 |
@avril-verhaeghen thanks for the information! |
@madoar I'm figuring out how to do this, but as I'm thinking about it could create an HTML security issue. See, it's easily possible to pass the location of a CSS file to a component, but then the component needs to inject that CSS file directly into the DOM. Which actually is a bad idea. Not sure how other modules handle their styling to be able to be overwritten. If you want I can have a look at the source and make a pull-request if I find something good? |
@avril-verhaeghen feel free to give it a go :) |
@madoar ok great 👍 ! I'll give it a try 🙂 |
@madoar can you send me an email? I have an off-screen question about how you build it 🙂 |
joining the request to change the colors maybe through a directive? |
Well... I'm using that plugin and when I set.... |
Hi,
My application has a gray-blackish theme.
When I added the wizard control it seems that the current step is disabled and the second step is the active one (Due to the default style provided by the control).
Is there a way to provide my style to the control? (I tried to add a class attribute but it doesn't seems to work).
Thanks,
TMaster
UPDATE
I did dig a bit in the code and I think I have a solution.
according to the less file there are 5 basic colors to use.
I think it would be best if I could supply the colors according to my theme.
What do you think?
The text was updated successfully, but these errors were encountered: