Why can't I set the text-decoration on my Breadcrumb items?

1 Answer 23 Views
Breadcrumb
David
Top achievements
Rank 2
Iron
Iron
Veteran
David asked on 14 Apr 2022, 12:10 AM

Here is my code:

<TelerikBreadcrumb Data="@Items" Width="100%" Class="ecsg-breadcrumb">
    <SeparatorTemplate>
        <span class="ecsg-breadcrumb-item">/</span>
    </SeparatorTemplate>
    <ItemTemplate>
        <div class="ecsg-breadcrumb-item" role="button">
            <span>
                @context.Text
            </span>
        </div>
    </ItemTemplate>
</TelerikBreadcrumb>
.ecsg-breadcrumb {
    background-color: #002547 !important;
    color: white;
}

.ecsg-breadcrumb-item {
    color: white;
    font-size: 1.25rem;
    text-decoration:none;
    text-decoration-thickness:0px;
}

Yet here is the result:

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 18 Apr 2022, 11:58 AM

Hello David,

My best suggestion would be to use a more specific CSS selector to target the div with class ecsg-breadcrumb-item. Below, I have added a possible selector:

.k-breadcrumb .k-breadcrumb-container .k-breadcrumb-item .ecsg-breadcrumb-item

Let me know if this helped you move forward with your application. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Breadcrumb
Asked by
David
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or