-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quiz rebase regression fixes #11661
Merged
nucleogenesis
merged 4 commits into
learningequality:develop
from
nucleogenesis:fix--quiz-rebase-regressions
Dec 21, 2023
Merged
Quiz rebase regression fixes #11661
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5b92824
section editor .value & local data definition fixes
nucleogenesis 3d0fb1d
tab styles fixed - remove styles mistakenly kept during conflict reso…
nucleogenesis e2caa8e
re-apply styles for "no questions" view
nucleogenesis efb974a
fix WARN: do not use v-for index as key in SectionEditor
nucleogenesis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ | |
tabsId="quizSectionTabs" | ||
class="section-tabs" | ||
:tabs="tabs" | ||
:appearanceOverrides="{ padding: '0px', overflow: 'hidden' }" | ||
:activeTabId="activeSection ? | ||
activeSection.section_id : | ||
'' " | ||
|
@@ -108,36 +107,39 @@ | |
tabsId="quizSectionTabs" | ||
:activeTabId="activeSection ? activeSection.section_id : ''" | ||
> | ||
<p>{{ activeSection.section_id }}</p> | ||
<!-- TODO This should be a separate component like "empty section container" or something --> | ||
<div v-if="!activeQuestions.length" class="no-question-style"> | ||
<KGrid class="questions-list-label-row"> | ||
<KGridItem | ||
class="right-side-heading" | ||
style="padding: 0.7em 0.75em;" | ||
<KGrid v-if="!activeQuestions.length" class="questions-list-label-row"> | ||
<KGridItem | ||
class="right-side-heading" | ||
style="padding: 0.7em 0.75em;" | ||
> | ||
<KButton | ||
primary | ||
:text="coreString('optionsLabel')" | ||
> | ||
<KButton | ||
primary | ||
:text="coreString('optionsLabel')" | ||
> | ||
<template #menu> | ||
<KDropdownMenu | ||
:primary="false" | ||
:disabled="false" | ||
:hasIcons="true" | ||
:options="activeSectionActions" | ||
@tab="e => (e.preventDefault() || $refs.selectAllCheckbox.focus())" | ||
@select="handleActiveSectionAction" | ||
/> | ||
</template> | ||
</KButton> | ||
</KGridItem> | ||
</KGrid> | ||
<template #menu> | ||
<KDropdownMenu | ||
:primary="false" | ||
:disabled="false" | ||
:hasIcons="true" | ||
:options="activeSectionActions" | ||
@tab="e => (e.preventDefault() || $refs.selectAllCheckbox.focus())" | ||
@select="handleActiveSectionAction" | ||
/> | ||
</template> | ||
</KButton> | ||
</KGridItem> | ||
</KGrid> | ||
<!-- TODO This should be a separate component like "empty section container" or something --> | ||
<div | ||
v-if="!activeQuestions.length" | ||
style="text-align: center; padding: 0 0 1em 0; max-width: 350px; margin: 0 auto;" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
> | ||
<!-- TODO This question mark thing should probably be an SVG for improved a11y --> | ||
<div class="question-mark-layout"> | ||
<span class="help-icon-style">?</span> | ||
</div> | ||
|
||
<p class="no-question-style"> | ||
<p style="margin-top: 1em; font-weight: bold;"> | ||
{{ noQuestionsInSection$() }} | ||
</p> | ||
|
||
|
@@ -146,6 +148,7 @@ | |
<KButton | ||
primary | ||
icon="plus" | ||
style="margin-top: 1em;" | ||
@click="openSelectResources(activeSection.section_id)" | ||
> | ||
{{ addQuestionsLabel$() }} | ||
|
@@ -587,10 +590,11 @@ | |
} | ||
|
||
.question-mark-layout { | ||
align-items: center; | ||
width: 2.5em; | ||
height: 2.5em; | ||
margin: auto; | ||
line-height: 1.7; | ||
text-align: center; | ||
background-color: #dbc3d4; | ||
} | ||
|
||
|
@@ -600,10 +604,6 @@ | |
color: #996189; | ||
} | ||
|
||
.no-question-style { | ||
font-weight: bold; | ||
} | ||
|
||
.kgrid-alignment-style { | ||
padding-right: 1em; | ||
padding-left: 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ | |
"extends browserslist-config-kolibri" | ||
], | ||
"volta": { | ||
"node": "16.18.0" | ||
"node": "16.18.0", | ||
"yarn": "1.12.3" | ||
} | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I moved this outside of the div in order to put the styles below onto that div without affecting this
[Options]
dropdown menu. Then I put the samev-if
condition on it as the same[Options]
button is displayed a little differently below.