-
Notifications
You must be signed in to change notification settings - Fork 40
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
Override Antd Select #27
Comments
In order to override third party styles you have to use eg: export default (props) => {
return (
<Select placeholder="" className="my-select">
<Option value={1}>1</Option>
</Select>
);
}; .my-select /deep/ .ant-select-single.ant-select-show-arrow .ant-select-selection-item,
.my-select /deep/ .ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder {
padding: 0;
} This way hash is assigned to |
why don't write in readme??? it's important |
@gaoxiaoliangz I'm trying to use the Are there any other things that must be done in order to get the nested selector working? |
Could you provide some code? |
@alexandernst I believe @gaoxiaoliangz If you update @vue/component-compiler-utils to v2.6.0, |
|
Isn't |
Hi, I came from here https://stackoverflow.com/a/57654191/7377225, and I wish to use this to override the styles of Select component in antd in another scoped component. However, after installing, the styles still applies to globally. Please see my code.
CustomSelect.js
customSelect.scoped.css
Then I have tried to use it in another component like this. Both still have the same styles where I expected that only the CustomSelect component should have had the 80px height.
AnotherComponent.js
The text was updated successfully, but these errors were encountered: