Skip to content

Commit

Permalink
fix(collapse):修改折叠面板默认字号大小
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed May 18, 2022
1 parent ffc5413 commit 0ddf639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-collapse/src/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface CollapseProps {
const CollapseWarp = styled.div<CollapseProps>`
border-radius: 4px;
line-height: 16px;
font-size: 14px;
font-size: ${(props) => getThemeVariantValue(props, 'fontSizeDefault')};
background-color: ${(props) => getThemeVariantValue(props, 'backgroundColorBase')};
border: 1px solid ${(props) => getThemeVariantValue(props, 'borderColorCollapseBase')};
overflow: hidden;
Expand Down Expand Up @@ -101,6 +101,7 @@ const CollapseWarp = styled.div<CollapseProps>`

CollapseWarp.defaultProps = {
defaultTheme: {
fontSizeDefault: '14px',
backgroundColorBase: '#fff',
borderColorCollapseBase: '#d9d9d9',
// Header
Expand Down

0 comments on commit 0ddf639

Please sign in to comment.