Links widget uses checkbox widget library

Created on 17 May 2024, 6 months ago
Updated 22 July 2024, 4 months ago

Problem/Motivation

The links widget uses the checkbox-widget library, thus transforming the facet link to a span display.

In 2.x the link widget had its own library, this in now gone in 3.0. But still not sure whether the link widget should receive the checkbox widgets library. At least now this part in the template that marks a link active is now removed by the checkbox widget js and thus there is no default visual indication that a facet link is active (by CSS class, but not without class just in plain HTML).
The checkbox widget is now extending from the link widget, maybe that is the reason why the library is added to both. But this could probably be solved in using different implementation of appendWidgetLibrary in Link Widget and Checkbox Widget

There has been something about the link widget display in #3309612: Link widget styling β†’ . Imho this is "repairing" styling for links, which in the first place got "broken" through the checkbox widget library added to the links widget.

Steps to reproduce

Use a facet with link widget and note that if you select a facet, you will not see the

(-)

indicator known from 2.x.

Proposed resolution

Do not use the checkbox widget library on the link widget. It seems, it will work without this as well and it will look and behave more like expected and like 2.x. The changes from #3309612: Link widget styling β†’ can then be reverted too probably.

Remaining tasks

User interface changes

Back to 2.x like style and behavior for links widget

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany stefan.korn Jossgrund

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024