@kitconcept/volto-light-theme 8.0.0-alpha.24 → 8.0.0-alpha.26

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,7 +1,12 @@
1
- ## 8.0.0-alpha.24 (2026-04-30)
1
+ ## 8.0.0-alpha.26 (2026-05-12)
2
2
 
3
3
  ### Bugfix
4
4
 
5
- - Remove the padding added by header-wrapper for search-wrapper and center ther search. @Tishasoumya-02 [#846](https://github.com/kitconcept/volto-light-theme/pull/846)
5
+ - Fix Mobile layout of social media icons @iRohitSingh [#852](https://github.com/kitconcept/volto-light-theme/pull/852)
6
+ - Fix social media icon color @iRohitSingh [#854](https://github.com/kitconcept/volto-light-theme/pull/854)
7
+ - Fix loading of inherited site customization fields on error views. @davisagli
8
+ - Fixed not working combinations with the richtext-widget in the text-block and updated line-height of ToC block according to figma. @TimoBroeskamp
9
+ - Update Volto to 19a36.
10
+ See https://github.com/plone/volto/releases/tag/19.0.0-alpha.36 @sneridagh
6
11
 
7
12
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,28 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 8.0.0-alpha.26 (2026-05-12)
12
+
13
+ ### Bugfix
14
+
15
+ - Fix Mobile layout of social media icons @iRohitSingh [#852](https://github.com/kitconcept/volto-light-theme/pull/852)
16
+ - Fix social media icon color @iRohitSingh [#854](https://github.com/kitconcept/volto-light-theme/pull/854)
17
+ - Fix loading of inherited site customization fields on error views. @davisagli
18
+ - Fixed not working combinations with the richtext-widget in the text-block and updated line-height of ToC block according to figma. @TimoBroeskamp
19
+ - Update Volto to 19a36.
20
+ See https://github.com/plone/volto/releases/tag/19.0.0-alpha.36 @sneridagh
21
+
22
+ ## 8.0.0-alpha.25 (2026-05-06)
23
+
24
+ ### Bugfix
25
+
26
+ - Fix Footer aligned with content @iRohitSingh [#838](https://github.com/kitconcept/volto-light-theme/pull/838)
27
+ - Fixed a bug that closed the Navigation when scrolling down with the scrollbar. @ TimoBroeskamp
28
+ - Fixed underlined items in the controlpanel and the contents tab. @TimoBroeskamp
29
+ - Upgrade Volto 19a33.
30
+ Upgrade `volto-calendar-block` 1.0.0a9
31
+ https://github.com/plone/volto/releases/tag/19.0.0-alpha.33 @sneridagh
32
+
11
33
  ## 8.0.0-alpha.24 (2026-04-30)
12
34
 
13
35
  ### Bugfix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "8.0.0-alpha.24",
3
+ "version": "8.0.0-alpha.26",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -47,7 +47,7 @@
47
47
  "release-it": "^19.0.3",
48
48
  "typescript": "^5.7.3",
49
49
  "vitest": "^3.1.2",
50
- "@plone/types": "2.0.0-alpha.17"
50
+ "@plone/types": "2.0.0-alpha.19"
51
51
  },
52
52
  "dependencies": {
53
53
  "@dnd-kit/core": "6.0.8",
@@ -59,7 +59,7 @@
59
59
  "react-aria-components": "^1.17.0",
60
60
  "react-colorful": "^5.6.1",
61
61
  "uuid": "^11.0.0",
62
- "@plone/components": "^4.0.0-alpha.7",
62
+ "@plone/components": "^4.0.0-alpha.8",
63
63
  "@kitconcept/volto-bm3-compat": "^1.0.0-alpha.1"
64
64
  },
65
65
  "peerDependencies": {
@@ -103,10 +103,26 @@ const Navigation = ({ pathname }: NavigationProps) => {
103
103
  setCurrentOpenIndex(null);
104
104
  };
105
105
 
106
+ // this function doesn't close the navigation when clicking the scrollbar
107
+ const doesScrollbarContainClick = (event: MouseEvent): boolean => {
108
+ const clickedVerticalScrollbar =
109
+ event.clientX >= document.documentElement.clientWidth &&
110
+ event.clientX <= window.innerWidth;
111
+
112
+ const clickedHorizontalScrollbar =
113
+ event.clientY >= document.documentElement.clientHeight &&
114
+ event.clientY <= window.innerHeight;
115
+
116
+ return clickedVerticalScrollbar || clickedHorizontalScrollbar;
117
+ };
118
+
106
119
  useEffect(() => {
107
120
  const handleClickOutside = (event: MouseEvent) => {
108
121
  if (navigation.current && doesNodeContainClick(navigation.current, event))
109
122
  return;
123
+ // check if scrollbar is clicked
124
+ if (doesScrollbarContainClick(event)) return;
125
+
110
126
  closeMenu();
111
127
  };
112
128
 
@@ -6,6 +6,7 @@ type FormState = {
6
6
  content: {
7
7
  data: Content;
8
8
  };
9
+ errorContext: Content;
9
10
  form: {
10
11
  global: Content;
11
12
  };
@@ -16,11 +17,15 @@ export function useLiveData<T>(
16
17
  behavior: string | undefined,
17
18
  field: string,
18
19
  ) {
20
+ const errorContext = useSelector((state: FormState) => state.errorContext);
21
+ const context = content ?? errorContext;
22
+
19
23
  const location = useLocation();
20
24
  const addMode = location?.pathname?.endsWith('/add');
25
+
21
26
  const current = behavior
22
- ? (content?.['@components']?.inherit?.[behavior]?.data?.[field] as T)
23
- : (content[field] as T);
27
+ ? (context?.['@components']?.inherit?.[behavior]?.data?.[field] as T)
28
+ : (context[field] as T);
24
29
 
25
30
  const formData = useSelector<FormState, T>(
26
31
  (state) => state.form.global?.[field],
package/src/index.ts CHANGED
@@ -14,6 +14,8 @@ import installWidgets from './config/widgets';
14
14
  import installSlots from './config/slots';
15
15
  import installSummary from './config/summary';
16
16
 
17
+ import reducers from './reducers';
18
+
17
19
  import '@plone/components/dist/basic.css';
18
20
 
19
21
  import type {
@@ -98,6 +100,11 @@ const applyConfig = (config: ConfigType) => {
98
100
 
99
101
  config.views.contentTypesViews.Event = EventView;
100
102
 
103
+ config.addonReducers = {
104
+ ...config.addonReducers,
105
+ ...reducers,
106
+ };
107
+
101
108
  return config;
102
109
  };
103
110
 
@@ -0,0 +1,14 @@
1
+ import { GET_CONTENT } from '@plone/volto/constants/ActionTypes';
2
+
3
+ const initialState = {};
4
+
5
+ export default function errorContext(state = initialState, action: any = {}) {
6
+ switch (action.type) {
7
+ case `${GET_CONTENT}_PENDING`:
8
+ return {};
9
+ case `${GET_CONTENT}_FAIL`:
10
+ return action.error.response?.body ?? {};
11
+ default:
12
+ return state;
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ import errorContext from './errorContext';
2
+
3
+ const reducers = {
4
+ errorContext,
5
+ };
6
+
7
+ export default reducers;
@@ -13,8 +13,8 @@
13
13
  --footer-foreground: var(--primary-foreground-color, #{$black});
14
14
  }
15
15
 
16
- .container:not(> .container) {
17
- padding: 0 1rem;
16
+ .container:not(:has(.container)) {
17
+ padding: 0;
18
18
  }
19
19
 
20
20
  & > :first-child:not(:empty) {
@@ -236,11 +236,22 @@
236
236
  flex-direction: column;
237
237
  justify-content: center;
238
238
  text-align: center;
239
+ ul.social-networks {
240
+ flex-wrap: wrap;
241
+ gap: 10px;
242
+ li {
243
+ margin-right: 0;
244
+ }
245
+ }
239
246
  }
240
247
 
241
248
  .footer-links {
242
249
  ul {
243
- justify-content: center;
250
+ flex-wrap: wrap;
251
+ gap: 10px;
252
+ li {
253
+ margin-right: 0;
254
+ }
244
255
  }
245
256
  }
246
257
 
@@ -387,7 +398,8 @@
387
398
  .main-footer + .post-footer {
388
399
  background-color: var(--primary-color, $white);
389
400
  color: var(--primary-foreground-color, $black);
390
- --social-network-icon-color-main: var(--primary-foreground-color, $black);
401
+ --social-network-icon-color-main: #{$black};
402
+ --social-network-icon-color-hover: #{$black};
391
403
  }
392
404
  }
393
405
 
@@ -31,11 +31,16 @@ header .navigation .item {
31
31
  font-family: $page-font;
32
32
  }
33
33
 
34
- .content-area,
35
- .breadcrumbs {
36
- a:not(.card-primary-link, .label) {
37
- color: var(--link-foreground-color, var(--theme-foreground-color));
38
- text-decoration: underline;
34
+ .public-ui,
35
+ .cms-ui.view-editview {
36
+ .content-area,
37
+ .breadcrumbs {
38
+ a:not(.card-primary-link, .label, .item) {
39
+ color: var(--link-foreground-color, var(--theme-foreground-color));
40
+ font: inherit;
41
+ line-height: inherit;
42
+ text-decoration: underline;
43
+ }
39
44
  }
40
45
  }
41
46
 
@@ -1,8 +1,9 @@
1
1
  .table-of-contents {
2
2
  .ui.bulleted.list {
3
3
  li {
4
+ line-height: 30px;
4
5
  a {
5
- text-decoration: underline;
6
+ line-height: inherit;
6
7
  }
7
8
 
8
9
  &::before {