mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
style: fix Table border and radius issues (#41985)
* style: fix Table border details * style: fix Table border details
This commit is contained in:
parent
709e910fd0
commit
3a5413315d
@ -39,6 +39,7 @@ const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
// ============================ Content ============================
|
||||
[`> ${componentCls}-container`]: {
|
||||
borderInlineStart: tableBorder,
|
||||
borderTop: tableBorder,
|
||||
|
||||
[`
|
||||
> ${componentCls}-content,
|
||||
@ -50,6 +51,7 @@ const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
// ============================= Cell =============================
|
||||
[`
|
||||
> thead > tr > th,
|
||||
> thead > tr > td,
|
||||
> tbody > tr > th,
|
||||
> tbody > tr > td,
|
||||
> tfoot > tr > th,
|
||||
@ -102,15 +104,6 @@ const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
[`
|
||||
> ${componentCls}-content,
|
||||
> ${componentCls}-header
|
||||
`]: {
|
||||
'> table': {
|
||||
borderTop: tableBorder,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// ============================ Scroll ============================
|
||||
@ -159,6 +152,10 @@ const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
boxShadow: `0 ${token.lineWidth}px 0 ${token.lineWidth}px ${token.tableHeaderBg}`,
|
||||
},
|
||||
},
|
||||
|
||||
[`${componentCls}-bordered ${componentCls}-cell-scrollbar`]: {
|
||||
borderInlineEnd: tableBorder,
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
@ -16,17 +16,14 @@ const genRadiusStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
borderStartStartRadius: 0,
|
||||
borderStartEndRadius: 0,
|
||||
|
||||
table: {
|
||||
// https://github.com/ant-design/ant-design/issues/41975
|
||||
[`${componentCls}-header, table`]: {
|
||||
borderRadius: 0,
|
||||
},
|
||||
|
||||
'> thead > tr:first-child': {
|
||||
'th:first-child': {
|
||||
borderRadius: 0,
|
||||
},
|
||||
|
||||
'th:last-child': {
|
||||
borderRadius: 0,
|
||||
},
|
||||
'table > thead > tr:first-child': {
|
||||
'th:first-child, th:last-child, td:first-child, td:last-child': {
|
||||
borderRadius: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user