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

Support SVG image element with objectFit, objectPosition #2986

Open
AlexPham-HIVO opened this issue Nov 27, 2024 · 0 comments
Open

Support SVG image element with objectFit, objectPosition #2986

AlexPham-HIVO opened this issue Nov 27, 2024 · 0 comments

Comments

@AlexPham-HIVO
Copy link

  • I see an example in a closed issue: Support SVG image element #1428
  • However, I have a use case where I set the backgroundSize/objectFit) and backgroundPosition/objectPosition to the background image.
  • Like the screenshot below, I have a cross shape and the background image has backgroundSize/objectFit = 'contain' and backgroundPosition/objectPosition = 'left top'

image

I tried but I see it didn't work. I wonder if we can support these?

In the example (#1428) I see we have to provide the x and y values in the Image component. Is there a way I don't have to use it?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant