-
Notifications
You must be signed in to change notification settings - Fork 2
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
updated style prop and added chip shadow #138
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -344,8 +344,8 @@ export const FormComposer = (props) => { | |
const renderFormFields = (props, section, index, array, sectionFormCategory) => ( | ||
<React.Fragment key={index}> | ||
{!props.childrenAtTheBottom && props.children} | ||
{props.heading && <Header style={{ ...props.headingStyle }}> {props.heading} </Header>} | ||
{props.description && <Header> {props.description} </Header>} | ||
{props.heading && <Header styles={{ ...props.headingStyle }}> {props.heading} </Header>} | ||
{props.description && <Header styles={{ ...props.descriptionStyles }}> {props.description} </Header>} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure consistent prop naming for styling across components Similar to the previous line, the prop name has been changed from To maintain consistency and prevent potential styling issues, consider the following options:
Example of option 1: -{props.heading && <Header styles={{ ...props.headingStyle }}> {props.heading} </Header>}
-{props.description && <Header styles={{ ...props.descriptionStyles }}> {props.description} </Header>}
+{props.heading && <Header style={{ ...props.headingStyle }}> {props.heading} </Header>}
+{props.description && <Header style={{ ...props.descriptionStyles }}> {props.description} </Header>} Please review and apply the appropriate change to ensure consistency throughout the codebase.
|
||
{props.text && <p>{props.text}</p>} | ||
{formFields(section, index, array, sectionFormCategory)} | ||
{props.childrenAtTheBottom && props.children} | ||
|
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.
🛠️ Refactor suggestion
Enhance accessibility with ARIA attributes
To improve the accessibility of the Chip component, consider adding appropriate ARIA attributes. For instance, you could add
role="button"
andaria-disabled={disabled}
when the chip is clickable.Example: