Skip to content

Commit 4d2b201

Browse files
committed
Merge branch 'master' into TMS-942
2 parents 5700050 + fdb34a3 commit 4d2b201

21 files changed

+326
-192
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Severa-ID: 2108
1+
Severa-ID: 2132
22
Severa-kuvaus:
33
Task: https://hiondigital.atlassian.net/browse/TMS-
44

CHANGELOG.MD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [1.8.8] - 2023-12-04
11+
12+
- TMS-939:
13+
- Search-page form accessibility fixes
14+
- Header search accessibility fixes
15+
- Added focus on input when opening header search
16+
- TMS-940:
17+
- Change mobile menu dropdown links to a single button-element
18+
- Hide current language on mobile header if only 2 languages in use
1019
- TMS-942:
1120
- Check / uncheck search filter checkboxes depending on choices
1221
- Trim contact phone number in href
1322
- Increase fly-out-nav z-index to prevent chatbot from overlapping elements
1423
- Add margin for program text-search suggestions
24+
- TMS-995: Show project-listing component images in projects-page
1525

1626
## [1.8.7] - 2023-11-21
1727

assets/scripts/focus-on-search.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2023. Hion Digital
3+
*/
4+
5+
// Use jQuery as $ within this file scope.
6+
const $ = jQuery; // eslint-disable-line no-unused-vars
7+
8+
/**
9+
* Export the class reference.
10+
*/
11+
export default class FocusOnSearch {
12+
13+
/**
14+
* Focus on search input when button is clicked
15+
*/
16+
FocusOnSearch() {
17+
const $searchContainer = $( '#js-search-toggle-target' );
18+
const $searchInput = $searchContainer.find( 'input[type=search]' );
19+
20+
if ( $( '#js-search-toggle' ).hasClass( 'is-active' ) ) {
21+
$searchInput.trigger( 'focus' );
22+
}
23+
}
24+
25+
/**
26+
* Run when the document is ready.
27+
*
28+
* @return {void}
29+
*/
30+
docReady() {
31+
$( '#js-search-toggle' ).on( 'click', this.FocusOnSearch.bind( this ) );
32+
}
33+
}

assets/scripts/theme.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import Countdown from './countdown';
2929
import ProgramSearch from './program-search';
3030
import LoadMore from './load-more';
3131
import SearchFilters from './search-filters';
32+
import FocusOnSearch from './focus-on-search';
3233

3334
const globalControllers = {
3435
Common,
@@ -57,6 +58,7 @@ const globalControllers = {
5758
ProgramSearch,
5859
LoadMore,
5960
SearchFilters,
61+
FocusOnSearch,
6062
};
6163

6264
const templateControllers = {

assets/styles/ui-components/header/_fly-out-nav.scss

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,42 @@ $fly-out-nav-search-button-icon: $primary !default;
134134

135135
> .navbar-dropdown-control {
136136
color: $fly-out-nav-primary-link;
137-
138-
> .navbar-link {
139-
padding-left: 0;
140-
}
137+
padding: .5rem 0;
141138

142139
> .dropdown-toggler {
143-
width: 2.5rem;
144-
height: 2.5rem;
140+
display: flex;
141+
justify-content: space-between;
142+
width: 100%;
145143
margin-right: 0;
146144
color: inherit;
145+
146+
.navbar-link-title {
147+
color: $fly-out-nav-primary-link;
148+
font-family: $family-primary;
149+
font-size: 1.223rem;
150+
font-weight: 600;
151+
}
152+
153+
&:hover,
154+
&:focus {
155+
.navbar-link-title {
156+
text-decoration: underline;
157+
}
158+
}
159+
}
160+
161+
.dropdown-toggler[aria-expanded=true] {
162+
transform: rotate(0) !important; // sass-lint:disable-line no-important
163+
164+
.icon {
165+
transform: rotate(180deg);
166+
}
147167
}
148168

149169
.icon {
150170
color: inherit;
151171
fill: currentColor;
172+
transition: transform 86ms ease-out;
152173
}
153174
}
154175

assets/styles/views/_page-project.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,4 @@
5353
}
5454
}
5555
}
56-
57-
.tredu-events {
58-
.image {
59-
display: none;
60-
}
61-
}
6256
}

assets/styles/views/_search.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ $search-item-hover: $primary-dark !default;
5757
background-color: $color-light-gray;
5858

5959
&__inner {
60+
display: flex;
61+
flex-direction: column-reverse;
62+
6063
@include from($desktop) {
6164
margin-right: 8.06rem;
6265
}
@@ -112,7 +115,7 @@ $search-item-hover: $primary-dark !default;
112115
}
113116

114117
span {
115-
margin-left: .25rem !important; // sass-lint:disable-line no-important
118+
margin-left: .25rem;
116119
}
117120
}
118121
}

lang/fi.mo

109 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)