Add gap to lists

This commit is contained in:
Cagatay Civici 2024-05-07 12:05:24 +03:00
parent a14ddd9b28
commit 89556ed54d
5 changed files with 10 additions and 11 deletions

View file

@ -85,6 +85,9 @@ const theme = ({ dt }) => `
margin: 0;
padding: 0;
list-style-type: none;
display: flex;
flex-direction: column;
gap: ${dt('autocomplete.list.gap')};
padding: ${dt('autocomplete.list.padding')};
}
@ -102,14 +105,6 @@ const theme = ({ dt }) => `
border-radius: ${dt('autocomplete.option.border.radius')};
}
.p-autocomplete-option:first-child {
margin-top: 0;
}
.p-autocomplete-option:last-child {
margin-bottom: 0;
}
.p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {
background: ${dt('autocomplete.option.focus.background')};
color: ${dt('autocomplete.option.focus.color')};