-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: dev
Are you sure you want to change the base?
[FINNA-2373] Fix search filters on smaller screens for sr #3110
Conversation
themes/finna2/js/finna-layout.js
Outdated
* Check and keep focus within the search facet list | ||
* @param {object} e Event object | ||
*/ | ||
function onFocusOut(e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nimeäisin funktion kuvaavammin.
@@ -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"> |
There was a problem hiding this comment.
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.
themes/finna2/js/finna-layout.js
Outdated
*/ | ||
function onSidebarBtnClick() { | ||
$('.sidebar').toggleClass('open'); | ||
$('.mobile-navigation .sidebar-navigation i').toggleClass('fa-arrow-down'); |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$sidebar-background
…ot full width in favourites list on mobile.
No description provided.