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

Web component: Add parts #6594

Closed
6 tasks done
strarsis opened this issue Apr 18, 2023 · 2 comments
Closed
6 tasks done

Web component: Add parts #6594

strarsis opened this issue Apr 18, 2023 · 2 comments

Comments

@strarsis
Copy link

strarsis commented Apr 18, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://codepen.io/strarsis/pen/qBJNJzv

Bug description

The Swiper Element (Web Component) does not have parts for its sub-components, as its pagination (pagination button (normal / active)), navigation, etc.
This makes styling those elements unnecessarily hard, as selecting those elements in shadow DOM by CSS is not directly possible from the outside.

Expected Behavior

All sub-components should be parts, so that styling is very easy and efficient,
it also leverages the strengths of such web components.

Actual Behavior

No parts are available.

Swiper version

9.2.3

Platform/Target and Browser Versions

Chrome (latest stable at 18.04.2023) on Windows 10 x64

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
@nolimits4web
Copy link
Owner

Customization must be done through CSS properties, if there are not enough CSS properties, you can open another feature request suggesting what to add.

Repository owner locked and limited conversation to collaborators Apr 21, 2023
@nolimits4web
Copy link
Owner

Added

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants