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

injectStylesUrls does not work #6662

Closed
5 of 6 tasks
bbonczek opened this issue May 11, 2023 · 0 comments
Closed
5 of 6 tasks

injectStylesUrls does not work #6662

bbonczek opened this issue May 11, 2023 · 0 comments

Comments

@bbonczek
Copy link

Check that this is really a bug

  • I confirm

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 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.

image

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

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants