Skip to content

Commit

Permalink
Feedback | Search filter opened button color
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 11, 2024
1 parent 29aa5ca commit 92d9891
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ const Search = props => {
<div className='col-xs-9 split' style={{width: getSearchResultsWidth(), paddingRight: 0, paddingLeft: showFilters ? '15px' : 0, float: 'right', height: '100%'}}>
<div className='col-xs-12 padding-0' style={{height: '100%'}}>
<SearchResults
showFilters={showFilters}
noCardDisplay={props.noCardDisplay}
order={order}
orderBy={orderBy}
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/SearchControls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DownIcon from '@mui/icons-material/ArrowDropDown';
import DisplayMenu from './DisplayMenu';
import SortMenu from './SortMenu';

const SearchControls = ({ disabled, onDisplayChange, display, order, orderBy, onOrderByChange, sortableFields, noCardDisplay }) => {
const SearchControls = ({ disabled, onDisplayChange, display, order, orderBy, onOrderByChange, sortableFields, noCardDisplay}) => {
const { t } = useTranslation()
const [displayAnchorEl, setDisplayAnchorEl] = React.useState(null);
const [sortAnchorEl, setSortAnchorEl] = React.useState(null);
Expand Down
5 changes: 3 additions & 2 deletions src/components/search/SearchResults.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import CardResults from './CardResults';
import { SORT_ATTRS } from './ResultConstants'

const ResultsToolbar = props => {
const { numSelected, title, onFiltersToggle, disabled, isFilterable, onDisplayChange, display, order, orderBy, onOrderByChange, sortableFields, noCardDisplay } = props;
const { numSelected, title, onFiltersToggle, disabled, isFilterable, onDisplayChange, display, order, orderBy, onOrderByChange, sortableFields, noCardDisplay, showFilters } = props;
return (
<Toolbar
sx={{
Expand All @@ -36,7 +36,7 @@ const ResultsToolbar = props => {
{
isFilterable &&
<IconButton style={{marginRight: '4px'}} onClick={onFiltersToggle} disabled={Boolean(disabled)}>
<FilterListIcon />
<FilterListIcon sx={{color: showFilters ? 'secondary.10' : 'secondary'}} />
</IconButton>
}
{numSelected > 0 ? (
Expand Down Expand Up @@ -215,6 +215,7 @@ const SearchResults = props => {
orderBy={props.orderBy}
onOrderByChange={props.onOrderByChange}
noCardDisplay={noCardDisplay}
showFilters={props.showFilters}
/>
{
props.noResults ?
Expand Down

0 comments on commit 92d9891

Please sign in to comment.