Replies: 4 comments 1 reply
-
|
@ionurboz Please stop adding 👀 or any other reactions to your own issues. Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
You could set a custom class name that doesn't exist. Then it shouldn't conflict with your markup. {
className: 'class-that-does-not-exist'
} |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, my goal is to disable the inline const progressPlugin = new SwupProgressPlugin({...});
progressPlugin.progressBar.styleElement = "";I came up with a solution like this, but I'm not sure if it's really the right way. I noticed that when I added the empty string Do you think this is a good solution? |
Beta Was this translation helpful? Give feedback.
-
|
@ionurboz alternatively, if you only want to overwrite some styles without the need for an additional inline .progress-bar.progress-bar {
top: auto;
bottom: 0;
}Using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the Swup Progress plugin (https://github.com/swup/progress-plugin).
The plugin automatically:
This inserts the style inline. But this overrides my own custom styles, and the style breaks down.
I also don't want to add any extra code (<style>). I want to manage the styling entirely. Just dynamically changing "--progress" is sufficient.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions