Skip to content

Commit

Permalink
fix(ui) #26056: Autocomplete Styles were Off
Browse files Browse the repository at this point in the history
* fix (autocomplete styles): height and fonts were off for autocomplete without chips

* feedback (autocomplete styles): add calculation to maintain the variables
  • Loading branch information
zJaaal authored and dsolistorres committed Nov 6, 2023
1 parent bebc3dc commit ed681cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core-web/libs/dotcms-scss/angular/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

@mixin dot-field-helper-on-input {
position: absolute;
top: 1.8rem;
top: 1.96rem;
right: $spacing-0;
z-index: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@

.p-autocomplete-input {
all: unset;
border: none;
font-family: $font-default;
font-size: $font-size-md;
color: $black;
padding: 0;
margin: 0;
height: calc(
$field-height-md - (2 * $field-border-size)
); // This input height is to match the 40px height, 40px - 3px of horizontal borders, because this input does not have borders
}

&.p-autocomplete-dd {
Expand Down

0 comments on commit ed681cc

Please sign in to comment.