Skip to content

Commit

Permalink
fix(styles): remove styles from ui components file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rozhkow committed Dec 5, 2023
1 parent cd3289d commit 3f5e5a9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
10 changes: 10 additions & 0 deletions src/components/common/BaseAutoComplete/BaseAutoComplete.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import styled from 'styled-components';
import { AutoComplete as BaseAutoComplete } from 'antd';

export const AutoComplete = styled(BaseAutoComplete)`
.ant-select-selection-search {
input {
font-size: ${({ theme }) => theme.fontSizes.md};
}
}
`;
7 changes: 6 additions & 1 deletion src/components/common/BaseAutoComplete/BaseAutoComplete.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export { AutoComplete as BaseAutoComplete } from 'antd';
import * as S from './BaseAutoComplete.styles';

export type { AutoCompleteProps as BaseAutoCompleteProps } from 'antd';

export const BaseAutoComplete : React.FC = (props) => {
return <S.AutoComplete {...props} />;
}
4 changes: 0 additions & 4 deletions src/components/common/BaseRadio/BaseRadio.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export const Radio = styled(AntRadio)`
}
&.ant-radio-wrapper {
.ant-radio {
align-self: inherit;
}
.ant-radio-inner,
.ant-radio-inner::after {
width: 1rem;
Expand Down
6 changes: 5 additions & 1 deletion src/components/common/BaseSpin/BaseSpin.styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import styled from 'styled-components';
import { Spin as AntSpin } from 'antd';

export const Spin = styled(AntSpin)``;
export const Spin = styled(AntSpin)`
.ant-spin-blur {
opacity: 0;
}
`;
18 changes: 0 additions & 18 deletions src/pages/uiComponentsPages/UIComponentsPage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@ export const Card = styled(CommonCard)`
&.ant-card-bordered {
border: 1px solid ${({ theme }) => theme.border};
}
.ant-radio-wrapper, label {
align-items: center;
}
.ant-spin-blur {
opacity: 0;
}
.ant-select-selection-search {
input {
font-size: ${({ theme }) => theme.fontSizes.md};
}
}
.ant-select-selection-placeholder {
opacity: 0.5;
}
`;

export const InputsWrapper = styled.div`
Expand Down

0 comments on commit 3f5e5a9

Please sign in to comment.