@eeacms/volto-eea-design-system 1.32.1 → 1.32.2
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
CHANGED
|
@@ -4,6 +4,15 @@ 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.32.2](https://github.com/eea/volto-eea-design-system/compare/1.32.1...1.32.2) - 28 August 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: Improve tablet layout for footer - refs #265857 [dobri1408 - [`4422ca4`](https://github.com/eea/volto-eea-design-system/commit/4422ca44740b405c20d5306a4a5bcb04a0085399)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- test: use node 18 to build docusaurus [valentinab25 - [`f1495bb`](https://github.com/eea/volto-eea-design-system/commit/f1495bb849e08aebba8441bd20e26e3d9c1cc808)]
|
|
7
16
|
### [1.32.1](https://github.com/eea/volto-eea-design-system/compare/1.32.0...1.32.1) - 27 August 2024
|
|
8
17
|
|
|
9
18
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
|
-
|
|
4
|
+
import cx from 'classnames';
|
|
5
5
|
import { isInternalURL } from '@plone/volto/helpers/Url/Url';
|
|
6
6
|
|
|
7
|
-
const Contact = ({ children, contacts }) =>
|
|
8
|
-
children?.length ? (
|
|
7
|
+
const Contact = ({ children, contacts }) => {
|
|
8
|
+
return children?.length ? (
|
|
9
9
|
children
|
|
10
10
|
) : (
|
|
11
|
-
<div
|
|
11
|
+
<div
|
|
12
|
+
className={cx(
|
|
13
|
+
'contact-wrapper',
|
|
14
|
+
contacts?.length > 5 ? 'many-contacts' : '',
|
|
15
|
+
)}
|
|
16
|
+
>
|
|
12
17
|
{contacts?.map((contact, index) => (
|
|
13
18
|
<div className="contact" key={index}>
|
|
14
19
|
{isInternalURL(contact.url) ? (
|
|
@@ -50,6 +55,7 @@ const Contact = ({ children, contacts }) =>
|
|
|
50
55
|
))}
|
|
51
56
|
</div>
|
|
52
57
|
);
|
|
58
|
+
};
|
|
53
59
|
|
|
54
60
|
Contact.propTypes = {
|
|
55
61
|
contacts: PropTypes.array,
|
|
@@ -31,7 +31,7 @@ const Template = (args) => (
|
|
|
31
31
|
|
|
32
32
|
export const Default = Template.bind({});
|
|
33
33
|
Default.args = {
|
|
34
|
-
buttonName: 'Explore our
|
|
34
|
+
buttonName: 'Explore our environmental information systems',
|
|
35
35
|
hrefButton: 'https://www.eea.europa.eu/en/information-systems',
|
|
36
36
|
description: '',
|
|
37
37
|
actions: [
|
|
@@ -33,12 +33,13 @@ const SubFooter = (props) => {
|
|
|
33
33
|
</div>
|
|
34
34
|
</Grid.Column>
|
|
35
35
|
))}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
{props.contacts?.length > 0 && (
|
|
37
|
+
<Grid.Column mobile={12} tablet={12} computer={4}>
|
|
38
|
+
<div className="item">
|
|
39
|
+
<Footer.Contact contacts={props.contacts} />
|
|
40
|
+
</div>
|
|
41
|
+
</Grid.Column>
|
|
42
|
+
)}
|
|
42
43
|
</Grid>
|
|
43
44
|
</div>
|
|
44
45
|
);
|
|
@@ -211,7 +211,22 @@ footer .footer-wrapper .menu {
|
|
|
211
211
|
footer .footer-header {
|
|
212
212
|
font-size: @tabletFooterTitleFontSize;
|
|
213
213
|
}
|
|
214
|
+
.contact-wrapper {
|
|
215
|
+
display: flex;
|
|
216
|
+
padding-top: @tabletContactWrapperPaddingTop;
|
|
217
|
+
gap: @tabletContactGap;
|
|
218
|
+
}
|
|
214
219
|
|
|
220
|
+
.contact-wrapper .subcontact {
|
|
221
|
+
display: block;
|
|
222
|
+
}
|
|
223
|
+
.many-contacts {
|
|
224
|
+
display: block;
|
|
225
|
+
padding-top: 0px;
|
|
226
|
+
}
|
|
227
|
+
.many-contacts .subcontact {
|
|
228
|
+
display: flex;
|
|
229
|
+
}
|
|
215
230
|
.subfooter .item {
|
|
216
231
|
.logo img {
|
|
217
232
|
max-height: 100px;
|
|
@@ -256,6 +271,13 @@ footer .footer-wrapper .menu {
|
|
|
256
271
|
}
|
|
257
272
|
|
|
258
273
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
274
|
+
.contact-wrapper {
|
|
275
|
+
display: block;
|
|
276
|
+
padding-top: 0px;
|
|
277
|
+
}
|
|
278
|
+
.contact-wrapper .subcontact {
|
|
279
|
+
display: flex;
|
|
280
|
+
}
|
|
259
281
|
footer {
|
|
260
282
|
.footer-wrapper {
|
|
261
283
|
padding: @computerWrapperPadding;
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
@tabletContactBlockMarginBottom : @space-4;
|
|
50
50
|
@mobileContactMargin : @space-4 0;
|
|
51
51
|
@tabletContactMargin : @rem-space-050 0;
|
|
52
|
+
@tabletContactWrapperPaddingTop : @rem-space-8;
|
|
52
53
|
@contactFontSize : @font-size-2;
|
|
53
54
|
@tabletContactFontSize : @font-size-3;
|
|
54
55
|
@tabletContactGap : @rem-space-4;
|