Skip to content

[Radio] Fix height difference when displaying NOTA (none of the above) radio choice#3195

Draft
ivyolamit wants to merge 2 commits intomainfrom
LEMS-3664/radio-nota-alignment
Draft

[Radio] Fix height difference when displaying NOTA (none of the above) radio choice#3195
ivyolamit wants to merge 2 commits intomainfrom
LEMS-3664/radio-nota-alignment

Conversation

@ivyolamit
Copy link
Contributor

Summary:

Fix height difference when displaying NOTA (none of the above) radio choice

Issue: LEMS-3664

Test plan:

…ce when displaying NOTA (none of the above) radio choice
…isplaying NOTA (none of the above) radio choice
@ivyolamit ivyolamit self-assigned this Jan 22, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Size Change: -10 B (0%)

Total Size: 485 kB

Filename Size Change
packages/perseus/dist/es/index.js 187 kB -10 B (-0.01%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.8 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 5.98 kB
packages/math-input/dist/es/index.js 98.5 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 12.1 kB
packages/perseus-core/dist/es/index.js 25 kB
packages/perseus-editor/dist/es/index.js 98.8 kB
packages/perseus-linter/dist/es/index.js 8.84 kB
packages/perseus-score/dist/es/index.js 9.32 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/strings.js 7.44 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

@github-actions
Copy link
Contributor

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (1bdb20e) and published it to npm. You
can install it using the tag PR3195.

Example:

pnpm add @khanacademy/perseus@PR3195

If you are working in Khan Academy's frontend, you can run the below command.

./dev/tools/bump_perseus_version.ts -t PR3195

If you are working in Khan Academy's webapp, you can run the below command.

./dev/tools/bump_perseus_version.js -t PR3195

? "correct"
: "wrong"
: undefined;
const content = choice.isNoneOfTheAbove
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the redundant NOTA content override that was replacing Renderer-wrapped content with a plain string

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this change is kept, then there needs to be a way to ensure that this string is included in the choice content. The current usage of the NOTA in the editor is that the text is not editable. If I recall correctly, the content for a NOTA choice is an empty string.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, this code is ensuring that the NOTA option has been translated in a consistent manner. If this text is managed elsewhere, then it will need to ensure the same results.

it("displays provided content for 'None of the above' choices", () => {
// The widget layer is responsible for setting the correct content
// for NOTA choices. The component just displays whatever content
// is passed to it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that is the case, then this test is not needed since there is no logic to test.

@ivyolamit ivyolamit changed the title [Image] Fix height difference when displaying NOTA (none of the above) radio choice [Radio] Fix height difference when displaying NOTA (none of the above) radio choice Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants