@kitconcept/volto-light-theme 6.0.0-alpha.20 → 6.0.0-alpha.21

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.draft CHANGED
@@ -1,12 +1,8 @@
1
- ## 6.0.0-alpha.20 (2025-04-01)
2
-
3
- ### Breaking
4
-
5
- - Remove feature flags, move to site customizations. @sneridagh [#516](https://github.com/kitconcept/volto-light-theme/pull/516)
6
- - Remove Plone portal actions from headers. @sneridagh [#516](https://github.com/kitconcept/volto-light-theme/pull/516)
1
+ ## 6.0.0-alpha.21 (2025-04-02)
7
2
 
8
3
  ### Bugfix
9
4
 
10
- - Minor CSS fixes and add docs on colors. @danalvrz [#509](https://github.com/kitconcept/volto-light-theme/pull/509)
5
+ - Fixed `Tags` component container. @sneridagh [#517](https://github.com/kitconcept/volto-light-theme/pull/517)
6
+ - Improve position of the intranet flag in responsive viewports. @sneridagh [#518](https://github.com/kitconcept/volto-light-theme/pull/518)
11
7
 
12
8
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,13 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 6.0.0-alpha.21 (2025-04-02)
12
+
13
+ ### Bugfix
14
+
15
+ - Fixed `Tags` component container. @sneridagh [#517](https://github.com/kitconcept/volto-light-theme/pull/517)
16
+ - Improve position of the intranet flag in responsive viewports. @sneridagh [#518](https://github.com/kitconcept/volto-light-theme/pull/518)
17
+
11
18
  ## 6.0.0-alpha.20 (2025-04-01)
12
19
 
13
20
  ### Breaking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "6.0.0-alpha.20",
3
+ "version": "6.0.0-alpha.21",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -0,0 +1,46 @@
1
+ import { Link } from 'react-router-dom';
2
+ import PropTypes from 'prop-types';
3
+ import { Container as SemanticContainer } from 'semantic-ui-react';
4
+ import config from '@plone/registry';
5
+
6
+ const Tags = ({ content }) => {
7
+ const tags = content?.subjects || [];
8
+ const Container =
9
+ config.getComponent({ name: 'Container' }).component || SemanticContainer;
10
+
11
+ if (!config.settings.showTags || !tags.length) return null;
12
+
13
+ return (
14
+ <Container className="default tags">
15
+ {tags.map((tag) => (
16
+ <Link className="ui label" to={`/search?Subject=${tag}`} key={tag}>
17
+ {tag}
18
+ </Link>
19
+ ))}
20
+ </Container>
21
+ );
22
+ };
23
+
24
+ /**
25
+ * Property types.
26
+ * @property {Object} propTypes Property types.
27
+ * @static
28
+ */
29
+ Tags.propTypes = {
30
+ content: PropTypes.shape({
31
+ subjects: PropTypes.arrayOf(PropTypes.string),
32
+ }),
33
+ };
34
+
35
+ /**
36
+ * Default properties.
37
+ * @property {Object} defaultProps Default properties.
38
+ * @static
39
+ */
40
+ Tags.defaultProps = {
41
+ content: {
42
+ subjects: [],
43
+ },
44
+ };
45
+
46
+ export default Tags;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * OVERRIDE Tags.jsx
3
+ * REASON: This theme uses a custom pre-@plone/components component
4
+ * SemanticUI-free located at the components folder.
5
+ * To override it, override the @kitconcept/volto-light-theme one instead of
6
+ * this one.
7
+ */
8
+
9
+ import Tags from '../../../../../components/Tags/Tags';
10
+
11
+ export default Tags;
@@ -245,9 +245,17 @@
245
245
  padding: 10px $spacing-small;
246
246
  border: none;
247
247
  margin-top: -16px;
248
- margin-left: 20vw;
248
+ margin-left: 200px;
249
249
  background-color: $secondary-grey;
250
250
 
251
+ @media only screen and (max-width: $computer-breakpoint) {
252
+ margin-left: 150px;
253
+ }
254
+
255
+ @media only screen and (max-width: $tablet-breakpoint) {
256
+ margin-left: 125px;
257
+ }
258
+
251
259
  @media only screen and (max-width: $narrow-container-width) {
252
260
  margin-left: 0px;
253
261
  }