Skip to content

Commit

Permalink
fix(next): fix array table warning style (#2973)
Browse files Browse the repository at this point in the history
  • Loading branch information
yee94 authored Mar 24, 2022
1 parent c322819 commit 3cb3ec7
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions packages/next/src/array-table/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,41 @@ $array-table-prefix-cls: '#{$css-prefix}formily-array-table';
position: relative;

.#{$css-prefix}formily-item-help {
&.#{$css-prefix}formily-item-error-help {
color: $form-error-color;
}

&.#{$css-prefix}formily-item-warning-help {
color: $form-warning-color;
}

min-width: 30px;
position: absolute;
font-size: 12px;
top: 100%;
width: 100%;
z-index: 1;
border-radius: 3px;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
background-color: $form-error-color;
color: #fff;
background-color: #fff;
border: 1px solid #eee;
padding: 6px 8px;
margin-top: 6px;
transform: translateY(0);
opacity: 1;
&:after {
content: ' ';
background: $form-error-color;
background-color: #fff;
position: absolute;
display: block;
width: 5px;
height: 5px;
pointer-events: none;
top: -2px;
-webkit-transform: rotate(45deg);
top: -4px;
transform: rotate(45deg);
box-sizing: content-box !important;
border: 1px solid transparent;
border-left: 1px solid #eee;
border-top: 1px solid #eee;
z-index: -1;
}
}
Expand Down

0 comments on commit 3cb3ec7

Please sign in to comment.