-
Notifications
You must be signed in to change notification settings - Fork 84
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
ListItem to inherit font styles from List #5413
Comments
FE-5336 |
This issue has been automatically marked as stale because it has not had recent activity. If you believe this issue is still valid and required please comment below. It will be reviewed by the core Carbon team and may be closed if no further activity occurs. Thank you for your contributions. |
In order to reduce replication of code, ListItem now receives information on the variant of the parent List item via context; setting variant on List will pass it to child ListItem components. BREAKING CHANGE: `ListItem` will no longer accept the `variant` prop directly; it must now be set on the parent `List`. Resolves #5413
In order to reduce replication of code, ListItem now receives information on the variant of the parent List item via context; setting variant on List will pass it to child ListItem components. BREAKING CHANGE: `ListItem` will no longer accept the `variant` prop directly; it must now be set on the parent `List`. Resolves #5413
In order to reduce replication of code, ListItem now receives information on the variant of the parent List item via context; setting variant on List will pass it to child ListItem components. Resolves #5413
## [144.22.0](v144.21.1...v144.22.0) (2024-12-16) ### Features * **typography:** allow listitem to inherit variant from parent list ([ad4f4e7](ad4f4e7)), closes [#5413](#5413)
🎉 This issue has been resolved in version 144.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Desired behaviour
ListItem
inherits font styles fromList
. To apply a font variant to all list items, the variant prop may be set onList
alone.Current behaviour
Currently,
ListItem
does not inherit font styles fromList
. To apply a font variant to all list items, each list item must have the variant set.Suggested Solution
No response
CodeSandbox or Storybook URL
https://codesandbox.io/s/list-9tee68
Anything else we should know?
No response
Confidentiality
The text was updated successfully, but these errors were encountered: