Skip to content

Commit

Permalink
Adjusted the city text and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusher committed Jan 19, 2024
1 parent 6d8ed43 commit bf1aed3
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -4,6 +4,10 @@
align-items: center;
}

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

.look-ahead-list-container > .default-content-wrapper {
text-align: center;
}
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
2 changes: 2 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,8 @@ 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]}`;

Check failure on line 81 in blocks/look-ahead-list/look-ahead-list.js

View workflow job for this annotation

GitHub Actions / build

Expected no linebreak before this statement

Check failure on line 81 in blocks/look-ahead-list/look-ahead-list.js

View workflow job for this annotation

GitHub Actions / build

Expected { after 'if' condition
dropContent.append(listItem);
});
list.append(dropContent);
Expand Down

0 comments on commit bf1aed3

Please sign in to comment.