Grouped days have no 'current' theming

Created on 11 February 2025, 26 days ago

Problem/Motivation

In the formatter, a css styling 'office-hours__item-current' is available to style the currently open time slot.
However, when the formatter setting 'Group consecutive days with same hours into one set' is active, this is not the case.

Steps to reproduce

- In css, add some styling to 'office-hours__item-current'
- uncheck the formatter option 'Group consecutive days with same hours into one set'
- Edit a node with office-hours, making sure that a timeslot is open now. Save. See that the active timeslot is styled differently.
- Check the formatter option 'Group consecutive days with same hours into one set'
- Repeat.

Proposed resolution

Fix the error in function groupDays().

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code - formatter

Created by

🇳🇱Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024