You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using custom elements implementation of swiper in angular 'injectStylesUrls' option has no effect - styles are not applied. Using the same styles, but provided via injectStyles works fine. In provided stackblitz you can switch between injectStylesUrls and injectStyles by commenting part of code.
If you open devtools you can that swiper is actually downloading provided stylesheet, but styles do not get applied anyway.
Expected Behavior
Same styles that can be applied via 'injectStyles' option should work with 'injectStylesUrls'.
Actual Behavior
Styles provided via 'injectStylesUrls' do not get applied, even though swiper gets them (what you can see in network tab in devtools)
Check that this is really a bug
Reproduction link
https://stackblitz.com/edit/angular-45lyss?file=src/main.ts
Bug description
When using custom elements implementation of swiper in angular 'injectStylesUrls' option has no effect - styles are not applied. Using the same styles, but provided via
injectStyles
works fine. In provided stackblitz you can switch betweeninjectStylesUrls
andinjectStyles
by commenting part of code.If you open devtools you can that swiper is actually downloading provided stylesheet, but styles do not get applied anyway.
Expected Behavior
Same styles that can be applied via 'injectStyles' option should work with 'injectStylesUrls'.
Actual Behavior
Styles provided via 'injectStylesUrls' do not get applied, even though swiper gets them (what you can see in network tab in devtools)
Swiper version
9.3.1
Platform/Target and Browser Versions
macOS Chrome 112.0.5615.137
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: