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
feat(shadow-dom): support root style in shadow dom #2146
base: main
Are you sure you want to change the base?
Conversation
@MarvelSQ is attempting to deploy a commit to the rsuite Team on Vercel. A member of the Team first needs to authorize it. |
This pull request is being automatically deployed with Vercel (learn more). rsuite-nextjs – ./docs🔍 Inspect: https://vercel.com/rsuite/rsuite-nextjs/76VedBWWNZZcePLwEudJuE4KtBgQ rsuite – ./🔍 Inspect: https://vercel.com/rsuite/rsuite/63GmAWAATma2qMnvRXLgU7AAAcbk rsuite-v4 – ./docs🔍 Inspect: https://vercel.com/rsuite/rsuite-v4/4HruAe1W6Bq8qLg6VnT8SQbcM86t |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d95da9c:
|
@@ -1,6 +1,7 @@ | |||
// Themes | |||
|
|||
:root, | |||
:host, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
触发了 selector-pseudo-class-allowed-list
校验规则。
src/styles/color-modes.less
4:1 ✖ Unexpected pseudo-class "host" selector-pseudo-class-allowed-list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以在 examples 中添加一个在 web component 中使用 rsuite 的例子吗?
允许样式在 web-componets 中生效
增加
:host
选择器https://developer.mozilla.org/zh-CN/docs/Web/CSS/:host