Skip to content

Commit

Permalink
Quote Block, Hero Block bug fix (#263)
Browse files Browse the repository at this point in the history
* Quote Block, Hero Block bug fix

* Review Comments incorporated

* Review Comments incorporated

---------

Co-authored-by: piyushjindal <[email protected]>
  • Loading branch information
jindaliiita and piyushjindal authored Aug 13, 2024
1 parent 3f08cb9 commit 06db12d
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 6 deletions.
3 changes: 3 additions & 0 deletions blocks/fragment/fragment.css
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/* stylelint-disable-next-line no-empty-source */
main .section.two-columns > div.fragment-wrapper {
flex: unset;
}
1 change: 1 addition & 0 deletions blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ main .section.hero-container {
margin-bottom: 57px;
justify-content: center;
align-items: center;
overflow-x: hidden;
}

main .section.full-width > .hero-wrapper {
Expand Down
10 changes: 10 additions & 0 deletions blocks/hero/search/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,13 @@
max-height: 185px;
}
}

@media screen and (min-width: 1200px) {
.hero.block.small-size > div .content h2 {
max-width: 505px;
}

.hero.block.small-size .content .homes .filters .select-wrapper .selected::after {
position: relative;
}
}
7 changes: 6 additions & 1 deletion blocks/hero/search/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
display: block;
}


.hero.block .content .search-bar .suggester-results > li > ul {
padding: 0 15px;
}
Expand Down Expand Up @@ -148,3 +147,9 @@
padding: 10px;
}
}

@media screen and (min-width: 1200px) {
.hero.block.small-size .content .search-bar {
max-width: 505px;
}
}
7 changes: 7 additions & 0 deletions blocks/quote/design-1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.design-1.black-white .quote.block {
border-top: 1px solid var(--black);
}

.design-1.black-white .quote.block p {
color: var(--black);
}
7 changes: 6 additions & 1 deletion blocks/quote/quote.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import url('./design-1.css');

.quote.block {
border-top: 1px solid var(--body-color);
border-top: 1px solid var(--secondary-accent);
}

.quote.block .quote {
Expand Down Expand Up @@ -30,3 +32,6 @@
text-transform: uppercase;
}

.quote.block p {
color: var(--secondary-color);
}
6 changes: 3 additions & 3 deletions blocks/shared/search/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export function buildFilterSelect(name, placeholder, options) {
wrapper.classList.add('select-wrapper', name);
wrapper.innerHTML = `
<select name="${name}" aria-label="${placeholder}">
<option value="">Any ${placeholder}</option>
<option value="">${placeholder}</option>
</select>
<div class="selected" role="button" aria-haspopup="listbox" aria-label="${placeholder}" aria-expanded="false" tabindex="0"><span>Any ${placeholder}</span></div>
<div class="selected" role="button" aria-haspopup="listbox" aria-label="${placeholder}" aria-expanded="false" tabindex="0"><span>${placeholder}</span></div>
<ul class="select-items" role="listbox">
<li role="option" class="selected" data-value="">Any ${placeholder}</li>
<li role="option" class="selected" data-value="">${placeholder}</li>
</ul>
`;

Expand Down
8 changes: 7 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ main .section.padding {

main .section.two-columns {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
flex-flow: column wrap;
}

main .section.two-columns > div {
Expand Down Expand Up @@ -552,6 +552,12 @@ form button[type="submit"]:hover {
}
}

@media screen and (min-width: 900px) {
main .section.two-columns {
flex-direction: row;
}
}

@media screen and (min-width: 1200px) {
:root {
--nav-height: 140px;
Expand Down

0 comments on commit 06db12d

Please sign in to comment.