Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Fix: don't display "ghost option" for itemsets with Likert appearance #992

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/widget/select-likert/likertitem.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* By default, all Likert items are styled to appear joined by applying a border
* to their `.option-label` children. This "filler" is then used to mask that
* border on the outer sides of the first and last items. This is most likely to
* be addressed by work in progress on the new theme.
*/
@mixin likert-filler {
content: '';
display: block;
Expand All @@ -18,6 +24,25 @@

@include flex-direction(row);

/*
* Prevent display of "ghost option" when Likert items are defined in an
* itemset referencing items in a secondary instance
*/
> .itemset-template {
display: none;

/*
* Treat an itemset's first option the same as an inline item. See
* note on `likert-filler`.
*/
& + label .option-label::after,
& + .itemset-labels + label .option-label::after {
@include likert-filler;

left: 0;
}
}

> label {
@include flex(1);

Expand Down
Loading