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 committed Aug 2, 2023
1 parent 166af8c commit e6fa59b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 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,24 @@

@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-filter`.
*/
& + 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 e6fa59b

Please sign in to comment.