Skip to content

Commit

Permalink
Merge pull request #616 from oceanbase/dengfuping-design
Browse files Browse the repository at this point in the history
improve(style): Select loading color
  • Loading branch information
dengfuping authored Jun 25, 2024
2 parents 8026411 + 9b851d2 commit d1f6639
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 3 additions & 5 deletions packages/design/src/button/demo/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ const App: React.FC = () => {
<Button type="primary" loading={loading}>
Loading
</Button>
<Button type="primary" icon={<PoweroffOutlined />} loading={loading}>
Loading
</Button>
<Button type="primary" icon={<PoweroffOutlined />} loading={loading} />
<Button loading={loading}>Loading</Button>
<Button loading={loading} />
</Space>
<Space>
<Button type="primary" danger loading={loading}>
Loading
</Button>
<Button type="primary" danger ghost loading={loading}>
<Button danger ghost loading={loading}>
Loading
</Button>
<Button type="link" loading={loading}>
Expand Down
9 changes: 8 additions & 1 deletion packages/design/src/select/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ import { genComponentStyleHook } from '../../_util/genComponentStyleHook';
export type SelectToken = FullToken<'Select'>;

export const genSelectStyle: GenerateStyle<SelectToken> = (token: SelectToken): CSSObject => {
return {};
const { componentCls } = token;
return {
[`${componentCls}`]: {
[`${componentCls}-arrow${componentCls}-arrow-loading`]: {
color: token.colorTextTertiary,
},
},
};
};

export default (prefixCls: string) => {
Expand Down

0 comments on commit d1f6639

Please sign in to comment.