Skip to content
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(card): add object-fit and object-position properties in image refs #250422 #51

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

nileshgulia1
Copy link
Member

No description provided.

@@ -282,6 +284,28 @@ export const setCardStylingSchema = ({ schema, intl }) => {
actions: Object.keys(ALIGN_INFO_MAP),
actionsInfoMap: ALIGN_INFO_MAP,
},
objectfit: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nileshgulia1 You should use either camelCase or snake_case for 2-words properties names.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avoinea As those fields are used as css classes yield by styleWrapper, I don't think we have a notion to use cameCase CSS in design system. Maybe we can use ['object-fit'] ?

@ichim-david ichim-david merged commit 403a47a into develop Apr 20, 2023
@ichim-david ichim-david deleted the card-image-objectfit branch April 20, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants