chore: Checkbox widget does not show an asterisk to indicate it's a required#33814
chore: Checkbox widget does not show an asterisk to indicate it's a required#33814
Conversation
WalkthroughWalkthroughThe Checkbox component has been updated to display an asterisk ( Changes
Sequence Diagram(s) (Beta)N/A Assessment against linked issues
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (5)
Files skipped from review as they are similar to previous changes (3)
Additional Context UsedBiome (2)
Additional comments not posted (2)
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 Configration File (
|
| & [data-field-necessity-indicator-icon] { | ||
| color: var(--color-fg-negative); | ||
| margin-left: var(--inner-spacing-1); | ||
| margin-inline-start: var(--inner-spacing-1); |
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9281743607. |
|
Deploy-Preview-URL: https://ce-33814.dp.appsmith.com |
There was a problem hiding this comment.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
app/client/packages/design-system/widgets/src/components/Checkbox/chromatic/Checkbox.chromatic.stories.tsx (1)
Line range hint
22-29: Add a uniquekeyprop to each element in the iterable to ensure efficient updates and re-renders.- <> + <React.Fragment key={state}> <DataAttrWrapper attr={state} key={state}> <Checkbox>unchecked {state}</Checkbox> </DataAttrWrapper> <DataAttrWrapper attr={state} key={state}> <Checkbox defaultSelected>checked {state}</Checkbox> </DataAttrWrapper> - </> + </React.Fragment>
0e47b95 to
6096b0c
Compare
6096b0c to
895c87c
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
Outside diff range and nitpick comments (2)
app/client/packages/design-system/widgets/src/components/Checkbox/chromatic/Checkbox.chromatic.stories.tsx (1)
Line range hint
22-29: Add unique keys to elements in the iterable to prevent potential issues with React's rendering.- {states.map((state) => ( + {states.map((state, index) => ( + <React.Fragment key={index}> <> <DataAttrWrapper attr={state} key={state}> <Checkbox>unchecked {state}</Checkbox> </DataAttrWrapper> <DataAttrWrapper attr={state} key={state}> <Checkbox defaultSelected>checked {state}</Checkbox> </DataAttrWrapper> </> + </React.Fragment> ))}app/client/packages/design-system/widgets/src/components/Checkbox/stories/Checkbox.stories.tsx (1)
Line range hint
56-57: Ensure that all icons used in the Checkbox component have appropriate alternative text for accessibility.- <svg fill="currentColor" viewBox="0 0 24 24" {...props}> + <svg fill="currentColor" viewBox="0 0 24 24" {...props} aria-label="Checkmark">
Fixes #33444
/ok-to-test tags="@tag.Anvil"
Warning
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9297202278
Commit: 895c87c
Cypress dashboard url: Click here!
It seems like no tests ran 😔. We are not able to recognize it, please check workflow here.