Skip to content

Commit

Permalink
Merge pull request #609 from oceanbase/dengfuping-design
Browse files Browse the repository at this point in the history
improve(design): Result title and extra style
  • Loading branch information
dengfuping authored Jun 24, 2024
2 parents 8b1218c + 97cf095 commit db5e14c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/design/src/result/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
import { genComponentStyleHook } from '../../_util/genComponentStyleHook';
import { genLargeStyle } from '../../_util/genStyle';

export type ResultToken = FullToken<'Result'>;

export const genResultStyle: GenerateStyle<ResultToken> = (token: ResultToken): CSSObject => {
const { componentCls } = token;
return {
[`${componentCls}`]: {
[`${componentCls}-title`]: {
fontWeight: token.fontWeightStrong,
},
[`${componentCls}-extra`]: {
...genLargeStyle(token),
},
[`${componentCls}-content`]: {
padding: token.paddingLG,
borderRadius: token.borderRadiusLG,
Expand Down

0 comments on commit db5e14c

Please sign in to comment.