Skip to content

Remove ScrollableView left and right fade #2779

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ivyolamit
Copy link
Contributor

@ivyolamit ivyolamit commented Aug 8, 2025

Summary:

Remove ScrollableView left and right fade.
By removing the fade styling in ScrollableView component it will no longer hinder the dark mode settings.
And by updating the existing multiple choice fade styling to use semantic colors, this will allow us in the future to support the dark mode once available in WonderBlocks.

Issue: LEMS-3108

Aug-08-2025.13-10-43.mp4

Test plan:

@ivyolamit ivyolamit self-assigned this Aug 8, 2025
Copy link
Contributor

github-actions bot commented Aug 8, 2025

🗄️ Schema Change: No Changes ✅

Copy link
Contributor

github-actions bot commented Aug 8, 2025

Size Change: -97 B (-0.02%)

Total Size: 496 kB

Filename Size Change
packages/perseus/dist/es/index.js 207 kB -97 B (-0.05%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.7 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.6 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 13 kB
packages/perseus-core/dist/es/index.js 21.6 kB
packages/perseus-editor/dist/es/index.js 94.1 kB
packages/perseus-linter/dist/es/index.js 7.07 kB
packages/perseus-score/dist/es/index.js 9.34 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/strings.js 7.56 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

Copy link
Contributor

github-actions bot commented Aug 8, 2025

🛠️ Item Splitting: No Changes ✅

Copy link
Contributor

github-actions bot commented Aug 8, 2025

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR2779

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

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

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

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

@@ -5,31 +5,3 @@
gap: 0.8rem;
padding: 1.2rem;
}

Copy link
Contributor Author

@ivyolamit ivyolamit Aug 8, 2025

Choose a reason for hiding this comment

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

These styling is no longer necessary and redundant, fade is already done in multiple-choice.

background: linear-gradient(
to left,
transparent,
white calc(var(--perseus-multiple-choice-spacing) / 2)
var(--wb-semanticColor-core-foreground-inverse-strong)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use semantic color here equivalent to white so that when WB supports the dark theme mode, this will be the inverse color.

@ivyolamit ivyolamit marked this pull request as ready for review August 8, 2025 20:15
Copy link
Contributor

@SonicScrewdriver SonicScrewdriver left a comment

Choose a reason for hiding this comment

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

Love it, this is a great improvement. Thank you!!

background: linear-gradient(
to left,
transparent,
white calc(var(--perseus-multiple-choice-spacing) / 2)
var(--wb-semanticColor-core-foreground-inverse-strong)
Copy link
Contributor

Choose a reason for hiding this comment

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

You could possibly add a comment here explaining what this styling is doing -- it might help new engineers understand the purpose of the styling. :)

@ivyolamit ivyolamit added the project: new radio widget Pull requests that is related to the Radio Widget project that will build the new radio widget label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
olc-5.0.b27e5 project: new radio widget Pull requests that is related to the Radio Widget project that will build the new radio widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants