@eeacms/volto-eea-design-system 1.0.0-beta.3 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/package.json +1 -1
- package/src/ui/Footer/Description.jsx +23 -0
- package/src/ui/Footer/Footer.jsx +2 -0
- package/src/ui/Footer/Footer.stories.js +1 -0
- package/src/ui/Footer/SubFooter.jsx +2 -0
- package/theme/theme.config +1 -0
- package/theme/themes/eea/extras/footer.less +24 -5
- package/theme/themes/eea/extras/footer.variables +8 -0
- package/theme/themes/eea/extras/header.less +7 -5
- package/theme/themes/eea/views/card.overrides +2 -2
- package/theme/themes/eea/views/card.variables +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,29 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.0.0-beta.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.3...1.0.0-beta.4) - 28 February 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(footer): Add footer description #306 from eea/footer-description [ichim-david - [`bf655d1`](https://github.com/eea/volto-eea-design-system/commit/bf655d133dd75b217c34b3d4303ad450a59f2c51)]
|
|
12
|
+
- feat(footer): Add footer description [kreafox - [`2ad0f71`](https://github.com/eea/volto-eea-design-system/commit/2ad0f714556c5b8c2fd95a2caea5c3a1e82c75d1)]
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fixes
|
|
15
|
+
|
|
16
|
+
- fix(footer): Add class for children [kreafox - [`3c50d15`](https://github.com/eea/volto-eea-design-system/commit/3c50d15cd6ed46d78ef10d48fd851ed7c4b5ddea)]
|
|
17
|
+
- fix(footer): Don't show empty row if description is not present [kreafox - [`2ca7f7d`](https://github.com/eea/volto-eea-design-system/commit/2ca7f7d3247668ae8583b8cd629856aac82eb07d)]
|
|
18
|
+
- fix(search): Fix search links color #307 from eea/search-accessibility [ichim-david - [`a76f48b`](https://github.com/eea/volto-eea-design-system/commit/a76f48bab3a7d3f6b748eaa85b33266401372e40)]
|
|
19
|
+
- fix(search): Fix search links color [kreafox - [`69c42ef`](https://github.com/eea/volto-eea-design-system/commit/69c42effc5bdc3d31f18de74d77a3b7cc0018dc5)]
|
|
20
|
+
|
|
21
|
+
#### :nail_care: Enhancements
|
|
22
|
+
|
|
23
|
+
- change(carousel): tweak card width and padding for better arrow alignment [David Ichim - [`e184f70`](https://github.com/eea/volto-eea-design-system/commit/e184f70062d622e1ec53e8e1e2b012c080e62d77)]
|
|
24
|
+
- change(storybook): include footer description in storybook [kreafox - [`e904aa0`](https://github.com/eea/volto-eea-design-system/commit/e904aa0850e101d736e8d045e822d9a58b75ff6a)]
|
|
25
|
+
|
|
26
|
+
#### :hammer_and_wrench: Others
|
|
27
|
+
|
|
28
|
+
- Release 1.0.0-beta.4 [Alin Voinea - [`8c335c5`](https://github.com/eea/volto-eea-design-system/commit/8c335c56c5a2a76ea87f9da318055770f904e649)]
|
|
29
|
+
- Back to dev [Alin Voinea - [`38b0333`](https://github.com/eea/volto-eea-design-system/commit/38b03333066416915b056f8ac45da4de87ed7184)]
|
|
7
30
|
### [1.0.0-beta.3](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.2...1.0.0-beta.3) - 21 February 2023
|
|
8
31
|
|
|
9
32
|
#### :rocket: New Features
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Grid } from 'semantic-ui-react';
|
|
4
|
+
|
|
5
|
+
const Description = (props) => {
|
|
6
|
+
if (props.children) {
|
|
7
|
+
return <div className="footer-description">{props.children}</div>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return props.description ? (
|
|
11
|
+
<Grid.Row>
|
|
12
|
+
<div className="footer-description">
|
|
13
|
+
<p>{props.description}</p>
|
|
14
|
+
</div>
|
|
15
|
+
</Grid.Row>
|
|
16
|
+
) : null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
Description.propTypes = {
|
|
20
|
+
description: PropTypes.string,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default Description;
|
package/src/ui/Footer/Footer.jsx
CHANGED
|
@@ -12,6 +12,7 @@ import FooterHeader from '@eeacms/volto-eea-design-system/ui/Footer/FooterHeader
|
|
|
12
12
|
import SubFooter from '@eeacms/volto-eea-design-system/ui/Footer/SubFooter';
|
|
13
13
|
import Social from '@eeacms/volto-eea-design-system/ui/Footer/Social';
|
|
14
14
|
import Contact from '@eeacms/volto-eea-design-system/ui/Footer/Contact';
|
|
15
|
+
import Description from '@eeacms/volto-eea-design-system/ui/Footer/Description';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Component to display the footer.
|
|
@@ -37,6 +38,7 @@ Footer.Header = FooterHeader;
|
|
|
37
38
|
Footer.Sites = FooterSites;
|
|
38
39
|
Footer.Social = Social;
|
|
39
40
|
Footer.SubFooter = SubFooter;
|
|
41
|
+
Footer.Description = Description;
|
|
40
42
|
|
|
41
43
|
/**
|
|
42
44
|
* Property types.
|
package/theme/theme.config
CHANGED
|
@@ -95,6 +95,15 @@ footer .theme-sites {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.subfooter .footer-description {
|
|
99
|
+
margin: @mobileFooterDescriptionMargin;
|
|
100
|
+
text-align: @footerDescriptionTextAlign;
|
|
101
|
+
|
|
102
|
+
p {
|
|
103
|
+
font-size: @mobileFooterDescriptionFontSize;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
98
107
|
footer .footer-wrapper .menu {
|
|
99
108
|
.actions {
|
|
100
109
|
display: flex;
|
|
@@ -131,7 +140,7 @@ footer .footer-wrapper .menu {
|
|
|
131
140
|
flex-direction: column;
|
|
132
141
|
}
|
|
133
142
|
|
|
134
|
-
|
|
143
|
+
footer .footer-wrapper .menu .copyright a {
|
|
135
144
|
font-size: @mobileMenuCopyrightFontSize;
|
|
136
145
|
font-weight: @mobileMenuCopyrightFontWeight;
|
|
137
146
|
}
|
|
@@ -143,7 +152,7 @@ footer .footer-wrapper .menu {
|
|
|
143
152
|
}
|
|
144
153
|
|
|
145
154
|
footer .theme-sites .header {
|
|
146
|
-
font-size: @tabletFooterTitleFontSize
|
|
155
|
+
font-size: @tabletFooterTitleFontSize;
|
|
147
156
|
}
|
|
148
157
|
|
|
149
158
|
.subfooter .item {
|
|
@@ -176,6 +185,10 @@ footer .footer-wrapper .menu {
|
|
|
176
185
|
margin-right: @tabletSubContactIconMarginRight;
|
|
177
186
|
}
|
|
178
187
|
|
|
188
|
+
.subfooter .footer-description {
|
|
189
|
+
margin: @tabletFooterDescriptionMargin;
|
|
190
|
+
}
|
|
191
|
+
|
|
179
192
|
.subfooter .social {
|
|
180
193
|
justify-content: @tabletSocialJustifyContent;
|
|
181
194
|
gap: @tabletSocialGap;
|
|
@@ -187,7 +200,6 @@ footer .footer-wrapper .menu {
|
|
|
187
200
|
}
|
|
188
201
|
}
|
|
189
202
|
}
|
|
190
|
-
|
|
191
203
|
}
|
|
192
204
|
|
|
193
205
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
@@ -208,7 +220,7 @@ footer .footer-wrapper .menu {
|
|
|
208
220
|
|
|
209
221
|
.subfooter .logo-header {
|
|
210
222
|
// To match the figma align
|
|
211
|
-
margin-left: @computerLogoHeaderMarginLeft
|
|
223
|
+
margin-left: @computerLogoHeaderMarginLeft;
|
|
212
224
|
}
|
|
213
225
|
|
|
214
226
|
.contact-block .subcontact a {
|
|
@@ -226,12 +238,19 @@ footer .footer-wrapper .menu {
|
|
|
226
238
|
}
|
|
227
239
|
}
|
|
228
240
|
|
|
241
|
+
.subfooter .footer-description {
|
|
242
|
+
margin: @computerFooterDescriptionMargin;
|
|
243
|
+
|
|
244
|
+
p {
|
|
245
|
+
font-size: @computerFooterDescriptionFontSize;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
229
249
|
.subfooter .social {
|
|
230
250
|
margin: @computerSocialIconsMargin;
|
|
231
251
|
}
|
|
232
252
|
|
|
233
253
|
.footer .footer-wrapper .menu {
|
|
234
|
-
|
|
235
254
|
a {
|
|
236
255
|
font-size: @computerMenuFontSize;
|
|
237
256
|
}
|
|
@@ -50,6 +50,14 @@
|
|
|
50
50
|
@computerSubContactIconMarginRight : @rem-space-4;
|
|
51
51
|
@computerSubContactIconFontWeight : @font-weight-4;
|
|
52
52
|
|
|
53
|
+
/* Description */
|
|
54
|
+
@mobileFooterDescriptionMargin : @rem-space-2 0 @rem-space-8;
|
|
55
|
+
@tabletFooterDescriptionMargin : @rem-space-7 0 0 0;
|
|
56
|
+
@computerFooterDescriptionMargin : @rem-space-17 0 0 0;
|
|
57
|
+
@computerFooterDescriptionFontSize : @font-size-1;
|
|
58
|
+
@mobileFooterDescriptionFontSize : @font-size-0;
|
|
59
|
+
@footerDescriptionTextAlign : center;
|
|
60
|
+
|
|
53
61
|
/* Social Icons */
|
|
54
62
|
@mobileSocialIconsMargin : @rem-space-2 0 @rem-space-8;
|
|
55
63
|
@tabletSocialIconsMargin : @rem-space-7 0;
|
|
@@ -93,8 +93,7 @@
|
|
|
93
93
|
cursor: pointer;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
&:hover .language-link
|
|
97
|
-
{
|
|
96
|
+
&:hover .language-link {
|
|
98
97
|
color: @dropdownMenuItemColorHover;
|
|
99
98
|
}
|
|
100
99
|
}
|
|
@@ -371,7 +370,10 @@
|
|
|
371
370
|
.item {
|
|
372
371
|
padding: 0;
|
|
373
372
|
margin: 0;
|
|
374
|
-
|
|
373
|
+
|
|
374
|
+
a {
|
|
375
|
+
color: @searchBoxSuggestionsTextColor;
|
|
376
|
+
}
|
|
375
377
|
}
|
|
376
378
|
}
|
|
377
379
|
}
|
|
@@ -443,8 +445,8 @@
|
|
|
443
445
|
height: @mobileMainSectionHeight;
|
|
444
446
|
align-items: center;
|
|
445
447
|
justify-content: center;
|
|
446
|
-
background-color: @burgerActionBackgroundColor;
|
|
447
448
|
border: none;
|
|
449
|
+
background-color: @burgerActionBackgroundColor;
|
|
448
450
|
cursor: pointer;
|
|
449
451
|
}
|
|
450
452
|
|
|
@@ -460,8 +462,8 @@
|
|
|
460
462
|
height: @mobileMainSectionHeight;
|
|
461
463
|
align-items: center;
|
|
462
464
|
justify-content: center;
|
|
463
|
-
background-color: @secondaryColor;
|
|
464
465
|
border: none;
|
|
466
|
+
background-color: @secondaryColor;
|
|
465
467
|
cursor: pointer;
|
|
466
468
|
}
|
|
467
469
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
/* Cards must have same height */
|
|
16
16
|
.ui.card {
|
|
17
|
-
min-width: @minWidth;
|
|
18
17
|
height: 100%;
|
|
19
18
|
text-align: var(--text-align, @cardTextAlign);
|
|
20
19
|
background-color: var(--card-background-color, @background);
|
|
@@ -304,7 +303,6 @@
|
|
|
304
303
|
|
|
305
304
|
.slick-track {
|
|
306
305
|
display: flex;
|
|
307
|
-
gap: @slickTrackGap;
|
|
308
306
|
margin: @slickTrackMargin;
|
|
309
307
|
}
|
|
310
308
|
|
|
@@ -313,6 +311,7 @@
|
|
|
313
311
|
height: auto;
|
|
314
312
|
flex: 1;
|
|
315
313
|
flex-direction: column;
|
|
314
|
+
margin: @slickSlideMargin;
|
|
316
315
|
|
|
317
316
|
> div {
|
|
318
317
|
height: 100%;
|
|
@@ -323,6 +322,7 @@
|
|
|
323
322
|
/* Carousel arrows */
|
|
324
323
|
.cards-carousel .ui.button.icon.slider-arrow {
|
|
325
324
|
padding: @carouselButtonPadding;
|
|
325
|
+
margin: @carouselButtonMargin;
|
|
326
326
|
|
|
327
327
|
.active, &:focus, &:hover {
|
|
328
328
|
background: transparent;
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
@minHeight: 0px;
|
|
23
23
|
@padding: 0em;
|
|
24
24
|
@width: 290px;
|
|
25
|
-
@minWidth: 250px;
|
|
26
25
|
@borderWidth: 1px;
|
|
27
26
|
@borderShadow: 0px 0px 0px @borderWidth @solidBorderColor;
|
|
28
27
|
@boxShadow: @eeaGlobalShadow;
|
|
@@ -333,6 +332,7 @@
|
|
|
333
332
|
|
|
334
333
|
/* Button */
|
|
335
334
|
@carouselButtonPadding: 0;
|
|
335
|
+
@carouselButtonMargin: 0;
|
|
336
336
|
@carouselButtonIconColor: @tertiaryColor;
|
|
337
337
|
@carouselButtonIconFontSize: 3.125rem;
|
|
338
338
|
@carouselButtonIconOpacity: 1;
|
|
@@ -351,8 +351,8 @@
|
|
|
351
351
|
|
|
352
352
|
/* Slick wrapper */
|
|
353
353
|
@slickListMargin: 0 -0.75em;
|
|
354
|
-
@slickTrackGap: 1.25rem;
|
|
355
354
|
@slickTrackMargin: 1rem 0;
|
|
355
|
+
@slickSlideMargin: 0 10px;
|
|
356
356
|
|
|
357
357
|
/*******************************
|
|
358
358
|
Teaser Cards
|