Skip to content

Commit

Permalink
Merge pull request #2624 from XiaoMi/hotfix/descriptions(#2619)
Browse files Browse the repository at this point in the history
fix(descriptions): #2619
  • Loading branch information
solarjoker authored Oct 13, 2023
2 parents f799286 + b8d4d79 commit f708f00
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-foxes-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/descriptions": patch
---

fix: 修复带边框模式下 size 设置无效问题
5 changes: 5 additions & 0 deletions .changeset/shiny-foxes-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

Descriptions fix: 修复带边框模式下 size 设置无效问题
14 changes: 14 additions & 0 deletions packages/ui/descriptions/src/styles/descriptions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ $prefix: '#{$component-prefix}-descriptions' !default;
border: use-border-size('normal') use-color('gray', 200);
background-color: use-color-static('white');

&.#{$prefix}--size-md {
.#{$prefix}-row > th,
.#{$prefix}-row > td {
padding: use-spacing(7);
}
}

&.#{$prefix}--size-sm {
.#{$prefix}-row > th,
.#{$prefix}-row > td {
padding: use-spacing(5);
}
}

> table {
table-layout: auto;
border-collapse: collapse;
Expand Down

0 comments on commit f708f00

Please sign in to comment.