Closed kapildropani closed 8 months ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for submitting your first issue to this project.
Hi @kapildropani, I think that your problem is that you commented out the style defining the image container. I tried to copy/paste your code and manage to make it work defining a custom style in the scss file.
If you uncomment the lines
import styles from "./Carousel.module.scss";
and, inside the FluentCarousel control, the line
contentContainerStyles={styles.carouselImageContent}
and add, in the Carousel.module.scss
file, the following class
.carouselImageContent {
height: 200px;
width: 80%;
}
This should display the control without any problem. Let me know if it works this way.
Hi @kapildropani, I think that your problem is that you commented out the style defining the image container. I tried to copy/paste your code and manage to make it work defining a custom style in the scss file.
If you uncomment the lines
import styles from "./Carousel.module.scss";
and, inside the FluentCarousel control, the line
contentContainerStyles={styles.carouselImageContent}
and add, in the
Carousel.module.scss
file, the following class.carouselImageContent { height: 200px; width: 80%; }
This should display the control without any problem. Let me know if it works this way.
Ohhh! Thank you very much but I do solved it by myself after spending a lot of time. I'm really sorry couldn't stated here.
Thanks again.
Hi @kapildropani,
Thanks to @GuidoZam's help, can we consider this issue as resolved and to be closed?
Hi @kapildropani,
Thanks to @GuidoZam's help, can we consider this issue as resolved and to be closed?
Yes, sure @michaelmaillot
I'm trying with the Carousel component. It's only rendering right and left chevron icons. I have also uploaded the DOM image for the reference.
Component Code:
Response:
Category
[ ] Enhancement
[] Bug
[*] Question
Version
Please specify what version of the library you are using: [ @pnp/spfx-controls-react:3.15.0, @microsoft/generator-sharepoint:1.18.0, @fluentui/react: 8.106.4 ]
Expected / Desired Behavior / Question
It should show the images in my case it's carousel data please check the above code at line#13
Observed Behavior
Currently, I'm not able to see images in the carousel.
Steps to Reproduce
Just copy the above code in any webpart.tsx file with all the mentioned dependencies.
Thanks!