Skip to content

Commit

Permalink
Merge pull request #8031 from michaelchadwick/frontend-5001-bold-top-…
Browse files Browse the repository at this point in the history
…level-lg

all top-level learner groups are now bolded, regardless of subgroups
  • Loading branch information
dartajax committed Aug 5, 2024
2 parents 5a01621 + 23782b9 commit 7dee937
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ const definition = {
needsAccommodation: isVisible('> [data-icon="universal-access"]'),
toggle: clickable(' > [data-test-checkbox]'),
toggleTitle: clickable(' > [data-test-checkbox-title]'),
isStyledAsLeaf: hasClass('em'),
isStyledAsBranch: hasClass('strong'),
isStyledAsLeaf: hasClass('leaf'),
isStyledAsBranch: hasClass('branch'),
isHidden: property('hidden'),
isChecked: property('checked', '[data-test-checkbox]', { at: 0 }),
subgroups: collection('> [data-test-subgroups] > [data-test-learnergroup-tree]', {
title: text('[data-test-checkbox-title]', { at: 0 }),
needsAccommodation: isVisible(' > [data-icon="universal-access"]'),
toggle: clickable('[data-test-checkbox]', { at: 0 }),
toggleTitle: clickable('[data-test-checkbox-title]', { at: 0 }),
isStyledAsLeaf: hasClass('em'),
isStyledAsBranch: hasClass('strong'),
isStyledAsLeaf: hasClass('leaf'),
isStyledAsBranch: hasClass('branch'),
isHidden: property('hidden'),
isChecked: property('checked', '[data-test-checkbox]', { at: 0 }),
subgroups: collection('> [data-test-subgroups] > [data-test-learnergroup-tree]', {
title: text('[data-test-checkbox-title]', { at: 0 }),
needsAccommodation: isVisible('[data-icon="universal-access"]'),
toggle: clickable('[data-test-checkbox]', { at: 0 }),
toggleTitle: clickable('[data-test-checkbox-title]', { at: 0 }),
isStyledAsLeaf: hasClass('em'),
isStyledAsBranch: hasClass('strong'),
isStyledAsLeaf: hasClass('leaf'),
isStyledAsBranch: hasClass('branch'),
isHidden: property('hidden'),
isChecked: property('checked', '[data-test-checkbox]', { at: 0 }),
}),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{#let (unique-id) as |templateId|}}
<li
hidden={{this.isHidden}}
class="learnergroup-tree {{if this.hasChildren "strong" "em"}}"
class="learnergroup-tree {{if this.hasChildren "branch" "leaf"}}"
data-test-learnergroup-tree
data-test-learnergroup-tree-root={{if this.isRoot "true" "false"}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@
color: c.$raisinBlack;
margin-left: 20px;

&.strong {
&.branch {
font-weight: bold;

li {
font-weight: normal;
}
}

&.em {
font-style: italic;
&.leaf {
font-weight: bold;

li {
font-style: normal;
Expand Down

0 comments on commit 7dee937

Please sign in to comment.