jessepollak / jessepollak/card

Add a prefix option

Open
#403 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
11.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

It would be great if there was a prefix option for the CSS that's being embedded. I wanted to use this form but a lot of the CSS is getting overridden.

For example:

```
new Card({
form: 'form',
container: '.container',
prefix: 'html#ecwid_html body#ecwid_body .ecwid div'
})
```

This would then make it so that all of the css classes added to the page would be prefixed with `html#ecwid_html body#ecwid_body .ecwid div`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.