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 "scoped" attribute to the <style> tag , prevents its style from affecting other elements on the page #52

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

wzdxy
Copy link
Contributor

@wzdxy wzdxy commented Aug 11, 2017

Add "scoped" attribute to the <style> tag , prevents its style from affecting other elements on the page

I also use the muse-ui UI framework to build my website.
I found that the style sheet in src/components/s-md-toolbar-left.vue changed the style of the Drawer component on the page.
So I added scoped-css-features to avoid this problem

给 <style> 标签添加了 scoped 属性 , 防止其样式影响页面上的其他元素

我也在使用 muse-ui 这个 UI 框架构建页面 .
我发现 src/components/s-md-toolbar-left.vue 中的样式表会改变页面内 Drawer 组件 .mu-item-wrapper .mu-item 的样式 .
添加了 scoped-css-features 来避免这个问题

@CHENXCHEN CHENXCHEN merged commit 1de442b into hinesboy:master Aug 11, 2017
@CHENXCHEN
Copy link
Collaborator

Thanks for your contribution.

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

Successfully merging this pull request may close these issues.

2 participants