We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The objectFit props isn't documented. And by default it resolves to cover, even overrides styles provided via class attribute.
objectFit
cover
To Reproduce Steps to reproduce the behavior:
<Image src={props.img.src} background={props.img.placeholder} layout="fullWidth" class={style({ border: `2px solid ${vars.color.gray[300]}`, borderRadius: vars.space[5], objectFit: "contain", })} />
object-fit: contain
Expected behavior img element should have object-fit: contain
img
Screenshots
Issue:
Temporary Fix:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The
objectFit
props isn't documented. And by default it resolves tocover
, even overrides styles provided via class attribute.To Reproduce
Steps to reproduce the behavior:
I'm using macron-css for styling. But I guess css module will also work.
object-fit: contain
gets overriddenExpected behavior
img
element should haveobject-fit: contain
Screenshots
Issue:
Temporary Fix:
The text was updated successfully, but these errors were encountered: