-
Notifications
You must be signed in to change notification settings - Fork 350
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
Remove z-index tokens, constants, and classes that place SOME widgets above the doodlepad. #2170
base: main
Are you sure you want to change the base?
Conversation
I'll do some testing once I get an npm artifact. |
…long-standing bugs in consuming code.
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (7f8abaf) and published it to npm. You Example: yarn add @khanacademy/perseus@PR2170 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR2170 |
Size Change: -38 B (0%) Total Size: 1.48 MB
ℹ️ View Unchanged
|
@@ -416,7 +416,7 @@ class Graph extends React.Component<Props> { | |||
|
|||
return ( | |||
<div | |||
className="graphie-container above-scratchpad" | |||
className="graphie-container blank-background" |
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.
Swapped because above-scratchpad
adds blank-background
styles in perseus-renderer.less
@@ -161,7 +161,7 @@ class Measurer extends React.Component<Props> implements Widget { | |||
<div | |||
className={ | |||
"perseus-widget perseus-widget-measurer " + | |||
"graphie-container above-scratchpad" | |||
"graphie-container blank-background" |
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.
Here too, ensuring we don't lose nested styles
whoops my branch is completely mis-named. oh well |
Works as expected! Screen.Recording.2025-01-30.at.11.55.58.AM.mov |
@MikeKlemarewski added you mostly as FYI |
Summary
I did this in two passes -- one commit to remove
above scratchpad
, and a second forinteractive
, which seems to be used for the same purpose. Both place widgets above thescratchpaddoodlepad, which has long led to many bugs.Issue: TUT-1059