Skip to content

Commit

Permalink
fix: site search color contrast + code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Feb 5, 2024
1 parent c654e61 commit f2a0013
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/components/SelectInput/SelectInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ SelectContainer.propTypes = {
const Option = injectLazyLibs('reactSelect')((props) => {
const components = props.reactSelect.components;
return (
<div className="select-pill text-primary">
<div className="select-pill">
<components.Option {...props} />
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/theme/ItaliaTheme/Components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
box-shadow: 0 0 0 2px var(--focus-outline-color) !important;
outline: none !important;
background-color: #0062e2;
color: #fff;
}
}
56 changes: 33 additions & 23 deletions src/theme/extras/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,39 +87,49 @@ body.search-modal-opened {
}
}

.search-results-wrapper {
mark.highlighted-text {
background-color: $highlight-search;
.search-view {
label.has-prepend {
z-index: unset;
}

.card {
&::after {
content: none;
.search-results-wrapper {
mark.highlighted-text {
background-color: $highlight-search;
}

.card-body {
.category-top {
.data:before {
content: none;
.card {
&::after {
content: none;
}

.card-body {
.category-top {
.data:before {
content: none;
}
}
}
}
}

.ordering-widget {
@media (max-width: 991px) {
.bootstrap-select-wrapper {
label[for='search-sort-on'] {
display: none;
.ordering-widget {
@media (max-width: 991px) {
.bootstrap-select-wrapper {
label[for='search-sort-on'] {
display: none;
}
}
}
}
}

.searchSpinnerWrapper {
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 0;
.searchSpinnerWrapper {
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 0;
}
}
.react-select__option--is-focused {
border-color: var(--focus-outline-color) !important;
box-shadow: 0 0 0 2px var(--focus-outline-color) !important;
outline: none !important;
}
}

0 comments on commit f2a0013

Please sign in to comment.