-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: Type features leak in WDS #40070
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
Conversation
WalkthroughThis pull request modifies the Changes
Assessment against linked issues
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/client/packages/design-system/theming/src/theme/src/ThemeProvider.tsx (1)
40-45
: Good approach to prevent style leakage.The implementation correctly resets OpenType features and letter spacing to prevent them from affecting child widgets. The spread operator properly preserves existing styles while overriding specific properties.
Consider adding a more descriptive variable name or constant for these reset styles to improve maintainability:
// Resetting the ADS OpenType features and type settings, so they don't leak into widgets, see https://github.com/appsmithorg/appsmith/blob/release/app/client/packages/design-system/ads/src/__theme__/default/index.css?plain=1#L310 + const resetTypographyStyles = { + fontFeatureSettings: "'ss03' 0", + letterSpacing: "0", + }; style={{ ...style, - fontFeatureSettings: "'ss03' 0", - letterSpacing: "0", + ...resetTypographyStyles, }}
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/client/packages/design-system/theming/src/theme/src/ThemeProvider.tsx
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
- GitHub Check: perform-test / server-build / server-unit-tests
- GitHub Check: perform-test / rts-build / build
- GitHub Check: client-unit-tests / client-unit-tests
- GitHub Check: client-lint / client-lint
- GitHub Check: client-build / client-build
- GitHub Check: client-prettier / prettier-check
- GitHub Check: chromatic-deployment
- GitHub Check: storybook-tests
- GitHub Check: chromatic-deployment
## Description Fixes appsmithorg#39928 ## Automation /ok-to-test tags="@tag.Anvil" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!IMPORTANT] > 🟣 🟣 🟣 Your tests are running. > Tests running at: <https://github.com/appsmithorg/appsmith/actions/runs/14243470954> > Commit: 76d2cf3 > Workflow: `PR Automation test suite` > Tags: `@tag.Anvil` > Spec: `` > <hr>Thu, 03 Apr 2025 12:54:05 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Refined typography by adjusting font feature settings and letter spacing to ensure consistent text rendering and visual appearance across components. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Fixes #39928
Automation
/ok-to-test tags="@tag.Anvil"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14243470954
Commit: 76d2cf3
Cypress dashboard.
Tags:
@tag.Anvil
Spec:
Thu, 03 Apr 2025 13:18:44 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit