-
Notifications
You must be signed in to change notification settings - Fork 367
feat(CC-batch-2): added batch 2 #11828
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
base: main
Are you sure you want to change the base?
Conversation
Preview: https://patternfly-react-pr-11828.surge.sh A11y report: https://patternfly-react-pr-11828-a11y.surge.sh |
c125345
to
a2c8176
Compare
props: { | ||
children: figma.children('*') | ||
}, | ||
example: (props) => <AlertGroup>{props.children}</AlertGroup> |
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.
this AlertGroup should have isToast isLiveRegion hasAnimations
added to it
// children | ||
children: figma.children('*') | ||
}, | ||
example: (props) => <AlertGroup>{props.children}</AlertGroup> |
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.
These AlertGroups should have isLiveRegion
and hasAnimations
if they could appear on the page. They don't need these props if they are present on page load and cannot be dismissed.
disabled: true | ||
}) | ||
}, | ||
example: (props) => <Badge title={props.title} isRead={props.isRead} isDisabled={props.isDisabled} /> |
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.
There is no title
prop on Badge. instead you pass the title as 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.
It may also be worth stubbing out the screenReaderText
prop for a11y setup.
children: figma.children('*') | ||
}, | ||
example: (props) => ( | ||
<Alert variant={props.variant} title={props.title} variantLabel={props.variant} isInline isPlain /> |
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.
Do we need separate code connect files for inline alert & plain inline alert or could these be combined with boolean flags for both isPlain
and isInline
?
disabled: true | ||
}) | ||
}, | ||
example: (props) => <Badge title={props.title} isRead={props.isRead} isDisabled={props.isDisabled} /> |
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.
It may also be worth stubbing out the screenReaderText
prop for a11y setup.
Relates to: #11624
Included components:
Component tracker
Figma preview
Resources: