Carousel arrow color

1 Answer 10 Views
Carousel
Dean
Top achievements
Rank 1
Iron
Iron
Veteran
Dean asked on 11 Jul 2025, 01:16 PM
Sorry I'm sure I've missed this somewhere obvious, but how can I set the color of the arrows on a Carousel, so that they are visible against a white background?

1 Answer, 1 is accepted

Sort by
0
Hristian Stefanov
Telerik team
answered on 11 Jul 2025, 01:46 PM

Hi Dean,

You can easily change the Carousel's arrows color by using the following CSS selectors:

<TelerikCarousel Data="@CarouselData"
                 Width="400px" Height="200px">
    <Template>
        <div class="item">ID @(context.ID) : @(context.Text)</div>
    </Template>
</TelerikCarousel>

<style>
    .k-scrollview-next .k-svg-i-chevron-right,
    .k-scrollview-prev .k-svg-i-chevron-left {
        color: red;
    }
</style>

<style>
    .item {
        background: #3d57d8;
        color: #fff;
        font: 36px/200px sans-serif;
        text-align: center;
    }
</style>

@code {
    public IEnumerable<CarouselModel> CarouselData = Enumerable.Range(1, 5).Select(x => new CarouselModel
    {
        ID = x,
        Text = "Text " + x
    });

    public class CarouselModel
    {
        public int ID { get; set; }
        public string Text { get; set; }
    }
}

Regards,
Hristian Stefanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Dean
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 11 Jul 2025, 02:00 PM

Perfect thanks - could you point me to the reference for this please?  I'd also like to style the active/inactive page icons, and style an arrow differently if there are no more items in that direction, if possible.

Hristian Stefanov
Telerik team
commented on 14 Jul 2025, 11:40 AM

Hi Dean,

You can use custom CSS to override specific styles for individual components. Inspect the rendered HTML using browser developer tools to identify the classes and elements you want to style differently. Then, create custom CSS rules to apply your desired styles.

Best,

Hristian

Tags
Carousel
Asked by
Dean
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Hristian Stefanov
Telerik team
Share this question
or