Change tile item title tag to no use h5

1 Answer 54 Views
Accessibility TileLayout
Matthew
Top achievements
Rank 1
Matthew asked on 08 Aug 2024, 03:09 PM
When running light house on our tile layout, we are getting a hit on non-sequential headings. The tileItem when passed header text renders the title as an h5. Is there a way to change this, with out building a custom tileItem?

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivaylo
Telerik team
answered on 12 Aug 2024, 01:17 PM

Hi, Matthew,

This can be achieved by passing a desired `ReactNode` to the header attribute in the items prop of the TileLayout component. The following example showcases this approach in action:

Please review the example above and in case this is not what you are looking for, let me know and I will assist further in implementing the required functionality.

Regards,
Ivaylo
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Tags
Accessibility TileLayout
Asked by
Matthew
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or