Skip to content

Commit

Permalink
Merge branch 'main' into 117-comm-hero
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusher authored Jan 22, 2024
2 parents f1706c9 + c7386a7 commit 7d84935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blocks/look-ahead-list/look-ahead-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
width: 100%;
}

.section.look-ahead-list-container.community-directory-container .look-ahead-list {
margin-bottom: 15px;
}

.look-ahead-list input {
width: 97%;
padding: 5px 0 5px 20px;
Expand Down Expand Up @@ -69,7 +73,7 @@
width: 100%;
overflow-y: auto;
top: 39px;
z-index: 1;
z-index: 2;
}

/* Style for the dropdown options */
Expand Down
3 changes: 3 additions & 0 deletions blocks/look-ahead-list/look-ahead-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default async function decorate(block) {
const listItem = document.createElement('a');
listItem.href = community.path;
listItem.innerText = `${communityName.split(',')[0]} (${communityName})`;
if (config.text && config.text.toUpperCase() === 'CITY') {
listItem.innerText = `${communityName.split(',')[0]}`;
}
dropContent.append(listItem);
});
list.append(dropContent);
Expand Down

0 comments on commit 7d84935

Please sign in to comment.