Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FINNA-2373] Fix search filters on smaller screens for sr #3110

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from

Conversation

siiriylonen
Copy link

No description provided.

@siiriylonen siiriylonen marked this pull request as ready for review January 14, 2025 09:23
* Check and keep focus within the search facet list
* @param {object} e Event object
*/
function onFocusOut(e) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nimeäisin funktion kuvaavammin.

@siiriylonen siiriylonen requested a review from pasitiis January 15, 2025 13:49
@@ -26,7 +26,10 @@
$extraUrlFields = $results->getUrlQuery()->getParamsWithConfiguredDefaults();
?>
<div class="side-facets-container-ajax" data-search-class-id="<?=$this->escapeHtmlAttr($this->searchClassId) ?>" data-location="<?=$this->escapeHtmlAttr($this->location) ?>" data-config-index="<?=$this->escapeHtmlAttr($this->configIndex)?>" data-query="<?=$this->escapeHtmlAttr($urlQuery)?>" data-query-suppressed="<?=$querySuppressed ? '1' : '0' ?>" data-extra-fields="<?=$this->escapeHtml(implode(',', $extraUrlFields))?>">
<h1><?=$this->transEsc($this->slot('side-facet-caption')->get('Narrow Search')) ?><?php if (null === $this->slot('side-facet-caption')->get() && !$this->translationEmpty('tooltip_facet_html')): ?><span class="tooltip-facet pull-right" data-toggle="tooltip" data-placement="auto" data-html="true" data-original-title="<?=$this->transEsc('tooltip_facet_html')?>"><?=$this->icon('help') ?></span><?php endif; ?><span role="button" class="visible-xs sidebar-close-btn" aria-label="<?=$this->transEsc('close')?>"><?=$this->icon('sidefacets-close', 'sidefacets-close-icon') ?></span></h1><?php endif; ?>
<div class="header-container">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pitäsikö luokan nimi olla side-facets-header-container tms.? Nyt ehkä vähän liian geneerinen.

*/
function onSidebarBtnClick() {
$('.sidebar').toggleClass('open');
$('.mobile-navigation .sidebar-navigation i').toggleClass('fa-arrow-down');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ei ikonin luokkaa kovakoodattuna. Jos pitää JS:ssä vaihtaa ikonia, niin pitää laittaa templaatissa kaksi ikonia, joita vaihdellaan.

$('.mobile-navigation .sidebar-navigation, .sidebar .mylist-bar h1').off('click').on('click', function onClickMobileNav() {
onSidebarBtnClick();
});
const container = document.querySelector(".side-facets-container-ajax");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pitää tarkistaa, löytyikö container (tyyliin if (!container) { return; }).

width: 100%;
display: flex;
justify-content: space-between;
background-color: $brand-primary;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$sidebar-background

padding: 0;
}
button {
background-color: $brand-primary;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$sidebar-background

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants