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

Commit

Permalink
Fix: don't display "ghost option" for itemsets with Likert appearance (
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness authored Aug 2, 2023
1 parent e835152 commit 4c605d9
Showing 1 changed file with 25 additions and 0 deletions.
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

0 comments on commit 4c605d9

Please sign in to comment.