-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: Updated subtitle position to bottom #35789
Conversation
…o action-redesign/helper-text-placement
WalkthroughThe recent updates enhance the styling and rendering logic for form components in the application. Key modifications include improved conditional rendering for subtitles and styling adjustments for specific control types. These changes align the UI elements more consistently, particularly in how subtitles are displayed in relation to various control types, ultimately improving user experience and visual clarity. Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
/build-deploy-preview skip-test=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10471623286. |
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
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- app/client/src/components/editorComponents/form/fields/StyledFormComponents.tsx (3 hunks)
- app/client/src/pages/Editor/FormConfig.tsx (5 hunks)
Additional comments not posted (5)
app/client/src/components/editorComponents/form/fields/StyledFormComponents.tsx (2)
11-12
: Great job on refining the styling logic!The adjustments to the
display
andmargin-top
properties forSWITCH
andCHECKBOX
control types enhance the visual alignment. Removing the semicolon also improves CSS syntax consistency.Also applies to: 22-27
38-43
: Consistent styling updates!The modification of the
display
property aligns with the changes made inStyledFormInfo
, ensuring uniformity in style declarations across components.app/client/src/pages/Editor/FormConfig.tsx (3)
71-75
: Good use of constants for maintainability!Introducing
controlsWithSubtitleInTop
centralizes the logic for determining subtitle placement, making the code more maintainable and easier to update.
Line range hint
196-253
: Improved subtitle rendering logic!Using
shouldRenderSubtitle
to determine subtitle rendering enhances the clarity and maintainability of the rendering logic.
271-276
: Well-aligned subtitle rendering!The conditional rendering of subtitles based on
controlsWithSubtitleInTop
ensures that subtitles are displayed correctly, aligning with the PR objectives.
Deploy-Preview-URL: https://ce-35789.dp.appsmith.com |
…o action-redesign/helper-text-placement
/build-deploy-preview skip-test=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10483710031. |
Deploy-Preview-URL: https://ce-35789.dp.appsmith.com |
…o action-redesign/helper-text-placement
/build-deploy-preview skip-test=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10492528424. |
Deploy-Preview-URL: https://ce-35789.dp.appsmith.com |
Description
This PR updates the placement of sub title text to the bottom of the form control. And this will not be applicable to
Fixes #34321
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10492518152
Commit: 9387183
Cypress dashboard.
Tags:
@tag.All
Spec:
Wed, 21 Aug 2024 18:13:17 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
StyledFormInfo
andFormSubtitleText
components by refining display properties and margin logic.