-
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
Quiz rebase regression fixes #11661
Conversation
<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> |
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 same v-if
condition on it as the same [Options]
button is displayed a little differently below.
<!-- 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 comment
The reason will be displayed to describe this comment to others. Learn more.
max-width: 350px
here is to accommodate the styles represented in the Figma so that the text remains at a readable length across languages as the same text in other languages may take up much more horizontal space
Build Artifacts
|
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.
LGTM
Summary
Fixes the "SectionEditor" side panel not displaying
Some issues w/ .value removal seem to have been the culprit here. I've also reworked some of the local state management for the form.
Fixes section tab styles
Artifact of mistaken conflict resolution.
Re-applies styles from @AllanOXDi 's previous work styling the "No questions" view
Another artifact of mistakes in conflict resolution / rebasing.
Reviewer guidance
QA @radinamatic
NOTE: The alternative "when questions are present" is not necessary to be tested here for two reasons: 1) there is no way to add questions w/out altering the code and 2) it has been tested locally and works as it did previously so it can wait for more robust testing
Code Review
Does everything make sense?
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)