-
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
[Storybook] Configure Aphrodite to Not Append !important to Styles #2107
base: main
Are you sure you want to change the base?
[Storybook] Configure Aphrodite to Not Append !important to Styles #2107
Conversation
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (4a233c9) and published it to npm. You Example: yarn add @khanacademy/perseus@PR2107 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR2107 |
Size Change: 0 B Total Size: 1.47 MB ℹ️ View Unchanged
|
// Once the LESS files have cascade layers included (a more involved task for a later time), | ||
// then the following plugin option should be removed. |
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.
Thanks for documenting the exit path. Do you think it's worth creating a ticket and noting it here?
Summary:
Aphrodite appends
!important
to all styling, by default. This is cumbersome for debugging and for writing appropriately defined rulesets. This configuration change causes Aphrodite to NOT append!important
. This change is limited to our dev environments (i.e. Storybook). Webapp has already implemented this, and handles Perseus styling accordingly.Issue: LEMS-2227
Test plan:
!important
suffixes.