I know the icons and colours can change but can the size of the dots and arrows on the carousel object be changed?
Thanks,
G
I know the icons and colours can change but can the size of the dots and arrows on the carousel object be changed?
Thanks,
G
I believe you can change both. If I understand correctly you’ll just have to use a new bigger icon. Check out the Carousel Page in the manual.
I tried this out but its not working. I selected one of the built-in icons (48x48) and configured the path to the icon as per screenshot.
I added a light red background to see if the icon size adjusted with the larger graphics and its looks like it didn’t. Am I missing something?
Hi there, I also encountered the same requirements, the embedded arrows of carousel are quite small. Alternatively, I used another method to enlarge the size of the arrows.
tag = '[default]SystemOpr/BlenderPage' #Memory tag binded to carousel
curValue = system.tag.readBlocking([tag])
# I have 7 pages in the carousel (0~6) in my application
if curValue[0].value >= 6: # Max constraint
system.tag.writeBlocking([tag], [6])
else: # To increase page number
system.tag.writeBlocking([tag], [curValue[0].value + 1])
Open the page in your browser and press ctrl + shift + I to open the dev tools.
Click that icon: ![]()
Then select the element you want to modify (In this case, the arrows). You may have to adjust the selection a little bit in the DOM tree (the html structure you get in the dev tools).
The goal here is to find an element you can target with a css selector, usually through its classes.
Then use the stylesheet to change any css properties you want on this element. Changing something's size should be quite easy.
edit:
This selector works: [data-component="ia.display.carousel"] .display-interaction-container .arrow-container .arrow svg
It selects both arrows. You may need to also adjust some margins/positions, or their containers.
Also, This will select the arrows of ALL carousels. If you want to apply the changes to one carousel only, put a class on it and use it in the selector.
An example that worked for me:
[data-component="ia.display.carousel"] .display-interaction-container .arrow-container .arrow {
width: 32px;
}
[data-component="ia.display.carousel"] .display-interaction-container .arrow-container .arrow svg {
height: 32px;
width: 32px;
}
edit 2: For the dots:
[data-component="ia.display.carousel"] .dots-container .dot
This worked great for me. Thank you!
It work for me, and thanks for the explication
On the off chance it didn’t work for you (which for some reason, I was stuck in) I found that appending !important finally got it working, just like:
.arrow-container .arrow svg[style] {
fill: #CD5555 !important;
width: 32px !important;
height: 32px !important;
padding-right: 10px !important;
}
Phew! Thanks to Rob Huddleston for this one
If !important fixes it, it's because the selector you used is less specific than the one providing the current style.
Look up css specificity to know more and maybe fix things up without having to resort to !important.