Skip to content

Commit

Permalink
fix(forms): required indicator style (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored Aug 5, 2024
1 parent ed75b5e commit 2c7ea0e
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions packages/core/forms/src/components/FormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,19 @@ $errorColor: #f00;
}
}
&.required {
> label:after {
color: red;
content: "*";
font-size: 14px;
font-weight: normal;
// position: absolute;
padding-left: 3px;
}
&.required > label:before {
background-color: $kui-color-background-danger;
border-radius: $kui-border-radius-circle;
content: "";
height: 6px;
margin-right: $kui-space-40;
width: 6px;
}
// hide the required indicator for checkboxes
// because it may be misleading that the checkbox must be checked
&.field-checkbox.required > label:before {
display: none;
}
&.disabled {
Expand Down

0 comments on commit 2c7ea0e

Please sign in to comment.