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

Add custom class or id as a prop to be able to overwrite styles in CSS #47

Open
tapnicom opened this issue Sep 4, 2024 · 1 comment

Comments

@tapnicom
Copy link

tapnicom commented Sep 4, 2024

No description provided.

@tapnicom
Copy link
Author

tapnicom commented Sep 4, 2024

We are only able to define global CSS overwrites when we remove scope from <style>
Example:

.bottom-sheet__content { background: #f4f4f4 !important; }

but this will apply to all instances.

we would need a prop "id" to be able to target each sheet instance specifically.
For example:
#modal1 .bottom-sheet__content { background: #f4f4f4 !important; }
if we pass a prop <vue-bottom-sheet id="modal1" ref="modal1"

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

No branches or pull requests

1 participant