File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
packages/design/src/typography Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1818<code src =" ./demo/editable.tsx " title =" 可编辑 " ></code >
1919<code src =" ./demo/editable-modal.tsx " title =" 在 Modal 中编辑 " ></code >
2020<code src =" ./demo/font-family.tsx " title =" 字体 " description =" 详见 [字体设计规范](/docs/spec/typography)。 " ></code >
21- <code src =" ./demo/inner.tsx " title =" 和其他组件组合使用 " debug ></code >
21+ <code src =" ./demo/inner.tsx " title =" 和其他组件组合使用 " description = " 需要继承父组件的字体样式和行高 " debug ></code >
2222
2323## API
2424
Original file line number Diff line number Diff line change @@ -12,17 +12,10 @@ export const genTypographyStyle: GenerateStyle<TypographyToken> = (
1212
1313 return {
1414 // inherit color and lineHeight from parent instead of fixed colorText
15- [ `span${ componentCls } ` ] : {
16- lineHeight : 'inherit' ,
17- color : 'inherit' ,
18- fontSize : 'inherit' ,
19- } ,
20- [ `div${ componentCls } ` ] : {
15+ [ `${ componentCls } ` ] : {
2116 lineHeight : 'inherit' ,
2217 color : 'inherit' ,
2318 fontSize : 'inherit' ,
24- } ,
25- [ `${ componentCls } ` ] : {
2619 [ `${ componentCls } -edit` ] : {
2720 fontSize : token . fontSize ,
2821 } ,
You can’t perform that action at this time.
0 commit comments