+
diff --git a/scripts/apps/master-desk/components/CardListComponent.tsx b/scripts/apps/master-desk/components/CardListComponent.tsx
index 16b8015e49..a632ee7cf6 100644
--- a/scripts/apps/master-desk/components/CardListComponent.tsx
+++ b/scripts/apps/master-desk/components/CardListComponent.tsx
@@ -11,7 +11,7 @@ export class CardListComponent extends React.Component {
return (
-
diff --git a/scripts/apps/master-desk/components/FilterBarComponent.tsx b/scripts/apps/master-desk/components/FilterBarComponent.tsx
index 2232fbd9b2..aa50bef827 100644
--- a/scripts/apps/master-desk/components/FilterBarComponent.tsx
+++ b/scripts/apps/master-desk/components/FilterBarComponent.tsx
@@ -30,7 +30,7 @@ export class FilterBarComponent extends React.Component {
) : null,
)}
- this.props.removeAllFilters()}>
+ this.props.removeAllFilters()}>
{gettext('Clear all filters')}
diff --git a/scripts/apps/monitoring/views/monitoring-view.html b/scripts/apps/monitoring/views/monitoring-view.html
index dcf3277be2..6ac95ca858 100644
--- a/scripts/apps/monitoring/views/monitoring-view.html
+++ b/scripts/apps/monitoring/views/monitoring-view.html
@@ -6,7 +6,7 @@
Internal Destinations
{this.props.name}
- + {this.props.total || 0}
-
+
@@ -91,9 +91,9 @@
+
-
+
@@ -104,7 +104,7 @@
+
diff --git a/scripts/apps/publish/views/publish-queue.html b/scripts/apps/publish/views/publish-queue.html
index 9bed9448b3..0c9db45218 100644
--- a/scripts/apps/publish/views/publish-queue.html
+++ b/scripts/apps/publish/views/publish-queue.html
@@ -2,9 +2,9 @@
-
+
-
+
diff --git a/scripts/apps/search/styles/search.scss b/scripts/apps/search/styles/search.scss
index 393db8d7de..f635a96418 100644
--- a/scripts/apps/search/styles/search.scss
+++ b/scripts/apps/search/styles/search.scss
@@ -158,36 +158,43 @@
border-left: 1px solid var(--sd-colour-line--light);
border-right: 1px solid var(--sd-colour-line--light);
position: relative;
+ transition: all 0.2s ease;
+ &:hover {
+ background-color: var(--sd-colour-bg__searchbar);
+ }
&.focused {
background: var(--sd-colour-bg__searchbar);
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
+ background-color: var(--sd-colour-bg__searchbar);
}
.search-icon {
@include user-select(none);
width: 28px;
height: 28px;
display: inline-block;
- background: url(~images/search-icon.png) no-repeat 5px 5px;
- opacity: 0.6;
- &:hover {
- cursor: pointer;
- opacity: 1;
+ opacity: 0.5;
+ position: absolute;
+ width: $nav-height;
+ height: $nav-height;
+ inset-block-start: 0;
+ inset-inline-start: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ i {
+ color: var(--color-icon-default);
+ margin-inline-start: 4px;
}
}
- .button {
+ .search-start {
position: absolute;
- width: $nav-height;
- height: $nav-height;
- background-position: center;
- top: 0;
- border: 0;
+ opacity: 1;
+ display: flex;
+ inset-block-start: 10px;
+ inset-inline-end: 16px;
margin: 0;
- .svg-icon-right {
- width: 18px;
- margin-top: 3px;
- }
}
input {
@@ -215,7 +222,8 @@
.search-cancel {
position: absolute;
- top: 12px; right: 55px;
+ top: 12px;
+ right: 55px;
background: transparent;
border: 0;
padding: 0;
diff --git a/scripts/apps/search/views/item-searchbar.html b/scripts/apps/search/views/item-searchbar.html
index 6379cdf7b1..33594d799b 100644
--- a/scripts/apps/search/views/item-searchbar.html
+++ b/scripts/apps/search/views/item-searchbar.html
@@ -1,6 +1,8 @@
-
+
-
\ No newline at end of file
diff --git a/scripts/apps/users/views/list.html b/scripts/apps/users/views/list.html
index 32631c7784..e7ce368df9 100644
--- a/scripts/apps/users/views/list.html
+++ b/scripts/apps/users/views/list.html
@@ -64,7 +64,7 @@ Users
- View full profile
+ View full profile
diff --git a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
index 01b884751a..15cb17d54b 100644
--- a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
+++ b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
@@ -185,7 +185,6 @@ interface IState {
items: Array;
page: number;
searchTerm: string;
- searchExtended: boolean;
sortDropdownOpen: boolean;
sort: ISortOption | null;
errorMessage: string | null;
@@ -220,7 +219,6 @@ export class VocabularyItemsViewEdit extends React.Component {
),
page: 1,
searchTerm: '',
- searchExtended: false,
sortDropdownOpen: false,
sort: initialSortOption,
errorMessage: null,
@@ -330,15 +328,12 @@ export class VocabularyItemsViewEdit extends React.Component {
return (
-
+
@@ -357,7 +352,7 @@ export class VocabularyItemsViewEdit extends React.Component {
-
+
{this.state.sort == null ? null : (
Content Profiles
-
+
-
- {{:: 'All'| translate}}
- {{:: 'Active only'| translate}}
+
+ {{:: 'All'| translate}}
+ {{:: 'Active only'| translate}}
+
+
{{ :: 'Add New' | translate }}
diff --git a/scripts/core/ArticlesListByQueryWithFilters.tsx b/scripts/core/ArticlesListByQueryWithFilters.tsx
index 777eeb1e12..5c26d710ec 100644
--- a/scripts/core/ArticlesListByQueryWithFilters.tsx
+++ b/scripts/core/ArticlesListByQueryWithFilters.tsx
@@ -350,7 +350,14 @@ export class ArticlesListByQueryWithFilters extends React.PureComponent
{itemsCount}
-
+
- U
- T
+ U
+ T
{{ item.slugline }}
diff --git a/scripts/core/ui/components/ListPage/generic-list-page.tsx b/scripts/core/ui/components/ListPage/generic-list-page.tsx
index ab817c4d95..a909241308 100644
--- a/scripts/core/ui/components/ListPage/generic-list-page.tsx
+++ b/scripts/core/ui/components/ListPage/generic-list-page.tsx
@@ -3,7 +3,7 @@
import React from 'react';
import {noop} from 'lodash';
import ReactPaginate from 'react-paginate';
-
+import classNames from 'classnames';
import {ListItem, ListItemColumn} from 'core/components/ListItem';
import {PageContainer, PageContainerItem} from 'core/components/PageLayout';
import {GenericListPageItemViewEdit} from './generic-list-page-item-view-edit';
@@ -375,57 +375,54 @@ export class GenericListPageComponent
};
return (
-
+
{
this.props.disallowFiltering ? null : (
-
- this.setFiltersVisibility(!this.state.filtersOpen)}
- active={this.state.filtersOpen}
- darker={true}
- data-test-id="toggle-filters"
- />
-
+ this.setFiltersVisibility(!this.state.filtersOpen)}
+ active={this.state.filtersOpen}
+ darker={true}
+ data-test-id="toggle-filters"
+ />
)
}
{
this.props.fieldForSearch == null ? null : (
-
- {
- this.searchBarRef = instance;
- }}
- value=""
- allowCollapsed={false}
- onSearch={(value) => {
- this.handleFilterFieldChange(
- this.props.fieldForSearch.field,
- value,
- this.filter,
- );
- }}
- />
-
+ {
+ this.searchBarRef = instance;
+ }}
+ value=""
+ allowCollapsed={false}
+ onSearch={(value) => {
+ this.handleFilterFieldChange(
+ this.props.fieldForSearch.field,
+ value,
+ this.filter,
+ );
+ }}
+ />
)
}
-
+
{this.props.crudManager._meta.total == null ? null : (
-
+
{gettext('Total:')}
-
- {this.props.crudManager._meta.total}
+ {this.props.crudManager._meta.total}
)}
diff --git a/scripts/core/ui/components/SearchBar/index.tsx b/scripts/core/ui/components/SearchBar/index.tsx
index afe8fc46f5..dd3f7af65a 100644
--- a/scripts/core/ui/components/SearchBar/index.tsx
+++ b/scripts/core/ui/components/SearchBar/index.tsx
@@ -39,7 +39,6 @@ export default class SearchBar extends React.Component {
};
this.dom = {searchIcon: null};
- this.toggleSearchBar = this.toggleSearchBar.bind(this);
this.onSearchChange = this.onSearchChange.bind(this);
this.resetSearch = this.resetSearch.bind(this);
this.resetSearchValue = this.resetSearchValue.bind(this);
@@ -54,14 +53,6 @@ export default class SearchBar extends React.Component {
}
}
- toggleSearchBar() {
- if (this.props.allowCollapsed === false) {
- return;
- }
-
- this.setState({searchBarExtended: !this.state.searchBarExtended});
- }
-
/** Reset the field value, close the search bar and load events */
resetSearch() {
this.setState({
@@ -112,13 +103,13 @@ export default class SearchBar extends React.Component {
<>
{removeButton}
- this.props.onSearch(this.state.searchInputValue)}
- />
+ aria-label="Start search"
+ >
+
+
>
)
: null
@@ -126,12 +117,11 @@ export default class SearchBar extends React.Component {
);
return (
-
-
+
+
-
+
@@ -91,9 +91,9 @@
+
+
-
+
@@ -104,7 +104,7 @@
+
diff --git a/scripts/apps/publish/views/publish-queue.html b/scripts/apps/publish/views/publish-queue.html
index 9bed9448b3..0c9db45218 100644
--- a/scripts/apps/publish/views/publish-queue.html
+++ b/scripts/apps/publish/views/publish-queue.html
@@ -2,9 +2,9 @@
-
+
-
+
diff --git a/scripts/apps/search/styles/search.scss b/scripts/apps/search/styles/search.scss
index 393db8d7de..f635a96418 100644
--- a/scripts/apps/search/styles/search.scss
+++ b/scripts/apps/search/styles/search.scss
@@ -158,36 +158,43 @@
border-left: 1px solid var(--sd-colour-line--light);
border-right: 1px solid var(--sd-colour-line--light);
position: relative;
+ transition: all 0.2s ease;
+ &:hover {
+ background-color: var(--sd-colour-bg__searchbar);
+ }
&.focused {
background: var(--sd-colour-bg__searchbar);
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
+ background-color: var(--sd-colour-bg__searchbar);
}
.search-icon {
@include user-select(none);
width: 28px;
height: 28px;
display: inline-block;
- background: url(~images/search-icon.png) no-repeat 5px 5px;
- opacity: 0.6;
- &:hover {
- cursor: pointer;
- opacity: 1;
+ opacity: 0.5;
+ position: absolute;
+ width: $nav-height;
+ height: $nav-height;
+ inset-block-start: 0;
+ inset-inline-start: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ i {
+ color: var(--color-icon-default);
+ margin-inline-start: 4px;
}
}
- .button {
+ .search-start {
position: absolute;
- width: $nav-height;
- height: $nav-height;
- background-position: center;
- top: 0;
- border: 0;
+ opacity: 1;
+ display: flex;
+ inset-block-start: 10px;
+ inset-inline-end: 16px;
margin: 0;
- .svg-icon-right {
- width: 18px;
- margin-top: 3px;
- }
}
input {
@@ -215,7 +222,8 @@
.search-cancel {
position: absolute;
- top: 12px; right: 55px;
+ top: 12px;
+ right: 55px;
background: transparent;
border: 0;
padding: 0;
diff --git a/scripts/apps/search/views/item-searchbar.html b/scripts/apps/search/views/item-searchbar.html
index 6379cdf7b1..33594d799b 100644
--- a/scripts/apps/search/views/item-searchbar.html
+++ b/scripts/apps/search/views/item-searchbar.html
@@ -1,6 +1,8 @@
-
+
-
\ No newline at end of file
diff --git a/scripts/apps/users/views/list.html b/scripts/apps/users/views/list.html
index 32631c7784..e7ce368df9 100644
--- a/scripts/apps/users/views/list.html
+++ b/scripts/apps/users/views/list.html
@@ -64,7 +64,7 @@ Users
- View full profile
+ View full profile
diff --git a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
index 01b884751a..15cb17d54b 100644
--- a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
+++ b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
@@ -185,7 +185,6 @@ interface IState {
items: Array;
page: number;
searchTerm: string;
- searchExtended: boolean;
sortDropdownOpen: boolean;
sort: ISortOption | null;
errorMessage: string | null;
@@ -220,7 +219,6 @@ export class VocabularyItemsViewEdit extends React.Component {
),
page: 1,
searchTerm: '',
- searchExtended: false,
sortDropdownOpen: false,
sort: initialSortOption,
errorMessage: null,
@@ -330,15 +328,12 @@ export class VocabularyItemsViewEdit extends React.Component {
return (
-
+
@@ -357,7 +352,7 @@ export class VocabularyItemsViewEdit extends React.Component {
-
+
{this.state.sort == null ? null : (
Content Profiles
-
+
-
- {{:: 'All'| translate}}
- {{:: 'Active only'| translate}}
+
+ {{:: 'All'| translate}}
+ {{:: 'Active only'| translate}}
+
+
{{ :: 'Add New' | translate }}
diff --git a/scripts/core/ArticlesListByQueryWithFilters.tsx b/scripts/core/ArticlesListByQueryWithFilters.tsx
index 777eeb1e12..5c26d710ec 100644
--- a/scripts/core/ArticlesListByQueryWithFilters.tsx
+++ b/scripts/core/ArticlesListByQueryWithFilters.tsx
@@ -350,7 +350,14 @@ export class ArticlesListByQueryWithFilters extends React.PureComponent
{itemsCount}
-
+
- U
- T
+ U
+ T
{{ item.slugline }}
diff --git a/scripts/core/ui/components/ListPage/generic-list-page.tsx b/scripts/core/ui/components/ListPage/generic-list-page.tsx
index ab817c4d95..a909241308 100644
--- a/scripts/core/ui/components/ListPage/generic-list-page.tsx
+++ b/scripts/core/ui/components/ListPage/generic-list-page.tsx
@@ -3,7 +3,7 @@
import React from 'react';
import {noop} from 'lodash';
import ReactPaginate from 'react-paginate';
-
+import classNames from 'classnames';
import {ListItem, ListItemColumn} from 'core/components/ListItem';
import {PageContainer, PageContainerItem} from 'core/components/PageLayout';
import {GenericListPageItemViewEdit} from './generic-list-page-item-view-edit';
@@ -375,57 +375,54 @@ export class GenericListPageComponent
};
return (
-
+
{
this.props.disallowFiltering ? null : (
-
- this.setFiltersVisibility(!this.state.filtersOpen)}
- active={this.state.filtersOpen}
- darker={true}
- data-test-id="toggle-filters"
- />
-
+ this.setFiltersVisibility(!this.state.filtersOpen)}
+ active={this.state.filtersOpen}
+ darker={true}
+ data-test-id="toggle-filters"
+ />
)
}
{
this.props.fieldForSearch == null ? null : (
-
- {
- this.searchBarRef = instance;
- }}
- value=""
- allowCollapsed={false}
- onSearch={(value) => {
- this.handleFilterFieldChange(
- this.props.fieldForSearch.field,
- value,
- this.filter,
- );
- }}
- />
-
+ {
+ this.searchBarRef = instance;
+ }}
+ value=""
+ allowCollapsed={false}
+ onSearch={(value) => {
+ this.handleFilterFieldChange(
+ this.props.fieldForSearch.field,
+ value,
+ this.filter,
+ );
+ }}
+ />
)
}
-
+
{this.props.crudManager._meta.total == null ? null : (
-
+
{gettext('Total:')}
-
- {this.props.crudManager._meta.total}
+ {this.props.crudManager._meta.total}
)}
diff --git a/scripts/core/ui/components/SearchBar/index.tsx b/scripts/core/ui/components/SearchBar/index.tsx
index afe8fc46f5..dd3f7af65a 100644
--- a/scripts/core/ui/components/SearchBar/index.tsx
+++ b/scripts/core/ui/components/SearchBar/index.tsx
@@ -39,7 +39,6 @@ export default class SearchBar extends React.Component {
};
this.dom = {searchIcon: null};
- this.toggleSearchBar = this.toggleSearchBar.bind(this);
this.onSearchChange = this.onSearchChange.bind(this);
this.resetSearch = this.resetSearch.bind(this);
this.resetSearchValue = this.resetSearchValue.bind(this);
@@ -54,14 +53,6 @@ export default class SearchBar extends React.Component {
}
}
- toggleSearchBar() {
- if (this.props.allowCollapsed === false) {
- return;
- }
-
- this.setState({searchBarExtended: !this.state.searchBarExtended});
- }
-
/** Reset the field value, close the search bar and load events */
resetSearch() {
this.setState({
@@ -112,13 +103,13 @@ export default class SearchBar extends React.Component {
<>
{removeButton}
- this.props.onSearch(this.state.searchInputValue)}
- />
+ aria-label="Start search"
+ >
+
+
>
)
: null
@@ -126,12 +117,11 @@ export default class SearchBar extends React.Component {
);
return (
-
-
+
+
-
+
@@ -104,7 +104,7 @@
+
+
diff --git a/scripts/apps/publish/views/publish-queue.html b/scripts/apps/publish/views/publish-queue.html
index 9bed9448b3..0c9db45218 100644
--- a/scripts/apps/publish/views/publish-queue.html
+++ b/scripts/apps/publish/views/publish-queue.html
@@ -2,9 +2,9 @@
-
+
-
+
diff --git a/scripts/apps/search/styles/search.scss b/scripts/apps/search/styles/search.scss
index 393db8d7de..f635a96418 100644
--- a/scripts/apps/search/styles/search.scss
+++ b/scripts/apps/search/styles/search.scss
@@ -158,36 +158,43 @@
border-left: 1px solid var(--sd-colour-line--light);
border-right: 1px solid var(--sd-colour-line--light);
position: relative;
+ transition: all 0.2s ease;
+ &:hover {
+ background-color: var(--sd-colour-bg__searchbar);
+ }
&.focused {
background: var(--sd-colour-bg__searchbar);
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
+ background-color: var(--sd-colour-bg__searchbar);
}
.search-icon {
@include user-select(none);
width: 28px;
height: 28px;
display: inline-block;
- background: url(~images/search-icon.png) no-repeat 5px 5px;
- opacity: 0.6;
- &:hover {
- cursor: pointer;
- opacity: 1;
+ opacity: 0.5;
+ position: absolute;
+ width: $nav-height;
+ height: $nav-height;
+ inset-block-start: 0;
+ inset-inline-start: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ i {
+ color: var(--color-icon-default);
+ margin-inline-start: 4px;
}
}
- .button {
+ .search-start {
position: absolute;
- width: $nav-height;
- height: $nav-height;
- background-position: center;
- top: 0;
- border: 0;
+ opacity: 1;
+ display: flex;
+ inset-block-start: 10px;
+ inset-inline-end: 16px;
margin: 0;
- .svg-icon-right {
- width: 18px;
- margin-top: 3px;
- }
}
input {
@@ -215,7 +222,8 @@
.search-cancel {
position: absolute;
- top: 12px; right: 55px;
+ top: 12px;
+ right: 55px;
background: transparent;
border: 0;
padding: 0;
diff --git a/scripts/apps/search/views/item-searchbar.html b/scripts/apps/search/views/item-searchbar.html
index 6379cdf7b1..33594d799b 100644
--- a/scripts/apps/search/views/item-searchbar.html
+++ b/scripts/apps/search/views/item-searchbar.html
@@ -1,6 +1,8 @@
-
+
-
\ No newline at end of file
diff --git a/scripts/apps/users/views/list.html b/scripts/apps/users/views/list.html
index 32631c7784..e7ce368df9 100644
--- a/scripts/apps/users/views/list.html
+++ b/scripts/apps/users/views/list.html
@@ -64,7 +64,7 @@ Users
- View full profile
+ View full profile
diff --git a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
index 01b884751a..15cb17d54b 100644
--- a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
+++ b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
@@ -185,7 +185,6 @@ interface IState {
items: Array;
page: number;
searchTerm: string;
- searchExtended: boolean;
sortDropdownOpen: boolean;
sort: ISortOption | null;
errorMessage: string | null;
@@ -220,7 +219,6 @@ export class VocabularyItemsViewEdit extends React.Component {
),
page: 1,
searchTerm: '',
- searchExtended: false,
sortDropdownOpen: false,
sort: initialSortOption,
errorMessage: null,
@@ -330,15 +328,12 @@ export class VocabularyItemsViewEdit extends React.Component {
return (
-
+
@@ -357,7 +352,7 @@ export class VocabularyItemsViewEdit extends React.Component {
-
+
{this.state.sort == null ? null : (
Content Profiles
-
+
-
- {{:: 'All'| translate}}
- {{:: 'Active only'| translate}}
+
+ {{:: 'All'| translate}}
+ {{:: 'Active only'| translate}}
+
+
{{ :: 'Add New' | translate }}
diff --git a/scripts/core/ArticlesListByQueryWithFilters.tsx b/scripts/core/ArticlesListByQueryWithFilters.tsx
index 777eeb1e12..5c26d710ec 100644
--- a/scripts/core/ArticlesListByQueryWithFilters.tsx
+++ b/scripts/core/ArticlesListByQueryWithFilters.tsx
@@ -350,7 +350,14 @@ export class ArticlesListByQueryWithFilters extends React.PureComponent
{itemsCount}
-
+
- U
- T
+ U
+ T
{{ item.slugline }}
diff --git a/scripts/core/ui/components/ListPage/generic-list-page.tsx b/scripts/core/ui/components/ListPage/generic-list-page.tsx
index ab817c4d95..a909241308 100644
--- a/scripts/core/ui/components/ListPage/generic-list-page.tsx
+++ b/scripts/core/ui/components/ListPage/generic-list-page.tsx
@@ -3,7 +3,7 @@
import React from 'react';
import {noop} from 'lodash';
import ReactPaginate from 'react-paginate';
-
+import classNames from 'classnames';
import {ListItem, ListItemColumn} from 'core/components/ListItem';
import {PageContainer, PageContainerItem} from 'core/components/PageLayout';
import {GenericListPageItemViewEdit} from './generic-list-page-item-view-edit';
@@ -375,57 +375,54 @@ export class GenericListPageComponent
};
return (
-
+
{
this.props.disallowFiltering ? null : (
-
- this.setFiltersVisibility(!this.state.filtersOpen)}
- active={this.state.filtersOpen}
- darker={true}
- data-test-id="toggle-filters"
- />
-
+ this.setFiltersVisibility(!this.state.filtersOpen)}
+ active={this.state.filtersOpen}
+ darker={true}
+ data-test-id="toggle-filters"
+ />
)
}
{
this.props.fieldForSearch == null ? null : (
-
- {
- this.searchBarRef = instance;
- }}
- value=""
- allowCollapsed={false}
- onSearch={(value) => {
- this.handleFilterFieldChange(
- this.props.fieldForSearch.field,
- value,
- this.filter,
- );
- }}
- />
-
+ {
+ this.searchBarRef = instance;
+ }}
+ value=""
+ allowCollapsed={false}
+ onSearch={(value) => {
+ this.handleFilterFieldChange(
+ this.props.fieldForSearch.field,
+ value,
+ this.filter,
+ );
+ }}
+ />
)
}
-
+
{this.props.crudManager._meta.total == null ? null : (
-
+
{gettext('Total:')}
-
- {this.props.crudManager._meta.total}
+ {this.props.crudManager._meta.total}
)}
diff --git a/scripts/core/ui/components/SearchBar/index.tsx b/scripts/core/ui/components/SearchBar/index.tsx
index afe8fc46f5..dd3f7af65a 100644
--- a/scripts/core/ui/components/SearchBar/index.tsx
+++ b/scripts/core/ui/components/SearchBar/index.tsx
@@ -39,7 +39,6 @@ export default class SearchBar extends React.Component {
};
this.dom = {searchIcon: null};
- this.toggleSearchBar = this.toggleSearchBar.bind(this);
this.onSearchChange = this.onSearchChange.bind(this);
this.resetSearch = this.resetSearch.bind(this);
this.resetSearchValue = this.resetSearchValue.bind(this);
@@ -54,14 +53,6 @@ export default class SearchBar extends React.Component {
}
}
- toggleSearchBar() {
- if (this.props.allowCollapsed === false) {
- return;
- }
-
- this.setState({searchBarExtended: !this.state.searchBarExtended});
- }
-
/** Reset the field value, close the search bar and load events */
resetSearch() {
this.setState({
@@ -112,13 +103,13 @@ export default class SearchBar extends React.Component {
<>
{removeButton}
- this.props.onSearch(this.state.searchInputValue)}
- />
+ aria-label="Start search"
+ >
+
+
>
)
: null
@@ -126,12 +117,11 @@ export default class SearchBar extends React.Component {
);
return (
-
-
+
+
diff --git a/scripts/apps/publish/views/publish-queue.html b/scripts/apps/publish/views/publish-queue.html
index 9bed9448b3..0c9db45218 100644
--- a/scripts/apps/publish/views/publish-queue.html
+++ b/scripts/apps/publish/views/publish-queue.html
@@ -2,9 +2,9 @@
-
+
- View full profile
+ View full profile
-
+
diff --git a/scripts/apps/search/styles/search.scss b/scripts/apps/search/styles/search.scss
index 393db8d7de..f635a96418 100644
--- a/scripts/apps/search/styles/search.scss
+++ b/scripts/apps/search/styles/search.scss
@@ -158,36 +158,43 @@
border-left: 1px solid var(--sd-colour-line--light);
border-right: 1px solid var(--sd-colour-line--light);
position: relative;
+ transition: all 0.2s ease;
+ &:hover {
+ background-color: var(--sd-colour-bg__searchbar);
+ }
&.focused {
background: var(--sd-colour-bg__searchbar);
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
+ background-color: var(--sd-colour-bg__searchbar);
}
.search-icon {
@include user-select(none);
width: 28px;
height: 28px;
display: inline-block;
- background: url(~images/search-icon.png) no-repeat 5px 5px;
- opacity: 0.6;
- &:hover {
- cursor: pointer;
- opacity: 1;
+ opacity: 0.5;
+ position: absolute;
+ width: $nav-height;
+ height: $nav-height;
+ inset-block-start: 0;
+ inset-inline-start: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ i {
+ color: var(--color-icon-default);
+ margin-inline-start: 4px;
}
}
- .button {
+ .search-start {
position: absolute;
- width: $nav-height;
- height: $nav-height;
- background-position: center;
- top: 0;
- border: 0;
+ opacity: 1;
+ display: flex;
+ inset-block-start: 10px;
+ inset-inline-end: 16px;
margin: 0;
- .svg-icon-right {
- width: 18px;
- margin-top: 3px;
- }
}
input {
@@ -215,7 +222,8 @@
.search-cancel {
position: absolute;
- top: 12px; right: 55px;
+ top: 12px;
+ right: 55px;
background: transparent;
border: 0;
padding: 0;
diff --git a/scripts/apps/search/views/item-searchbar.html b/scripts/apps/search/views/item-searchbar.html
index 6379cdf7b1..33594d799b 100644
--- a/scripts/apps/search/views/item-searchbar.html
+++ b/scripts/apps/search/views/item-searchbar.html
@@ -1,6 +1,8 @@
-
+
-
\ No newline at end of file
diff --git a/scripts/apps/users/views/list.html b/scripts/apps/users/views/list.html
index 32631c7784..e7ce368df9 100644
--- a/scripts/apps/users/views/list.html
+++ b/scripts/apps/users/views/list.html
@@ -64,7 +64,7 @@ Users
diff --git a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
index 01b884751a..15cb17d54b 100644
--- a/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
+++ b/scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx
@@ -185,7 +185,6 @@ interface IState {
items: Array;
page: number;
searchTerm: string;
- searchExtended: boolean;
sortDropdownOpen: boolean;
sort: ISortOption | null;
errorMessage: string | null;
@@ -220,7 +219,6 @@ export class VocabularyItemsViewEdit extends React.Component {
),
page: 1,
searchTerm: '',
- searchExtended: false,
sortDropdownOpen: false,
sort: initialSortOption,
errorMessage: null,
@@ -330,15 +328,12 @@ export class VocabularyItemsViewEdit extends React.Component {
return (
-
+
-
@@ -357,7 +352,7 @@ export class VocabularyItemsViewEdit extends React.Component {
+
{this.state.sort == null ? null : (
- Content Profiles
+
-
- {{:: 'All'| translate}}
- {{:: 'Active only'| translate}}
+
{{ :: 'Add New' | translate }}
diff --git a/scripts/core/ArticlesListByQueryWithFilters.tsx b/scripts/core/ArticlesListByQueryWithFilters.tsx
index 777eeb1e12..5c26d710ec 100644
--- a/scripts/core/ArticlesListByQueryWithFilters.tsx
+++ b/scripts/core/ArticlesListByQueryWithFilters.tsx
@@ -350,7 +350,14 @@ export class ArticlesListByQueryWithFilters extends React.PureComponent
{itemsCount}
-
+ {{:: 'All'| translate}}
+ {{:: 'Active only'| translate}}
+
+
+
};
return (
-
- U
- T
+ U
+ T
{{ item.slugline }}
diff --git a/scripts/core/ui/components/ListPage/generic-list-page.tsx b/scripts/core/ui/components/ListPage/generic-list-page.tsx
index ab817c4d95..a909241308 100644
--- a/scripts/core/ui/components/ListPage/generic-list-page.tsx
+++ b/scripts/core/ui/components/ListPage/generic-list-page.tsx
@@ -3,7 +3,7 @@
import React from 'react';
import {noop} from 'lodash';
import ReactPaginate from 'react-paginate';
-
+import classNames from 'classnames';
import {ListItem, ListItemColumn} from 'core/components/ListItem';
import {PageContainer, PageContainerItem} from 'core/components/PageLayout';
import {GenericListPageItemViewEdit} from './generic-list-page-item-view-edit';
@@ -375,57 +375,54 @@ export class GenericListPageComponent
+
{
this.props.disallowFiltering ? null : (
- this.setFiltersVisibility(!this.state.filtersOpen)}
+ active={this.state.filtersOpen}
+ darker={true}
+ data-test-id="toggle-filters"
+ />
)
}
{
this.props.fieldForSearch == null ? null : (
- {
+ this.searchBarRef = instance;
+ }}
+ value=""
+ allowCollapsed={false}
+ onSearch={(value) => {
+ this.handleFilterFieldChange(
+ this.props.fieldForSearch.field,
+ value,
+ this.filter,
+ );
+ }}
+ />
)
}
-
- this.setFiltersVisibility(!this.state.filtersOpen)}
- active={this.state.filtersOpen}
- darker={true}
- data-test-id="toggle-filters"
- />
-
+
- {
- this.searchBarRef = instance;
- }}
- value=""
- allowCollapsed={false}
- onSearch={(value) => {
- this.handleFilterFieldChange(
- this.props.fieldForSearch.field,
- value,
- this.filter,
- );
- }}
- />
-
+
+
{this.props.crudManager._meta.total == null ? null : (
-
+
{gettext('Total:')}
-
- {this.props.crudManager._meta.total}
+ {this.props.crudManager._meta.total}
)}
diff --git a/scripts/core/ui/components/SearchBar/index.tsx b/scripts/core/ui/components/SearchBar/index.tsx
index afe8fc46f5..dd3f7af65a 100644
--- a/scripts/core/ui/components/SearchBar/index.tsx
+++ b/scripts/core/ui/components/SearchBar/index.tsx
@@ -39,7 +39,6 @@ export default class SearchBar extends React.Component {
};
this.dom = {searchIcon: null};
- this.toggleSearchBar = this.toggleSearchBar.bind(this);
this.onSearchChange = this.onSearchChange.bind(this);
this.resetSearch = this.resetSearch.bind(this);
this.resetSearchValue = this.resetSearchValue.bind(this);
@@ -54,14 +53,6 @@ export default class SearchBar extends React.Component {
}
}
- toggleSearchBar() {
- if (this.props.allowCollapsed === false) {
- return;
- }
-
- this.setState({searchBarExtended: !this.state.searchBarExtended});
- }
-
/** Reset the field value, close the search bar and load events */
resetSearch() {
this.setState({
@@ -112,13 +103,13 @@ export default class SearchBar extends React.Component {
<>
{removeButton}
- this.props.onSearch(this.state.searchInputValue)}
- />
+ aria-label="Start search"
+ >
+
+
>
)
: null
@@ -126,12 +117,11 @@ export default class SearchBar extends React.Component {
);
return (
-
-
+
+